2010-01-21 9 views
2

AppleScript를 사용하여 응용 프로그램을 만들려고합니다. 종료 할 때 확인하지 않으면 내 메일을 확인하도록 상기시켜줍니다.종료시 AppleScript 실행

나는이 링크의 도움을했다 : http://discussions.apple.com/thread.jspa?threadID=1375949&tstart=0&messageID=7088687#7088687

이 링크에서 그들은 내가 로그인에서 시작 할 수있는 매우 응용 프로그램을 실행할 수 있음을 제안하고 내가 종료하려고 할 때, 시스템을 닫으려고합니다 원하는 결과를 얻을 수 있습니다! 에

say "Good morning Miraaj! I will be reminding you to check your mails at shutdown. Have a rocking day!!" 

set the alert_message to "Have you checked your mails?" 
display dialog the alert_message buttons {"Yes", "No"} default button 1 
set the my_choice to the button returned of the result 
if my_choice is "Yes" then 
    tell application "Finder" 
     shut down 
    end tell 
else 
    tell application "Safari" 
     open location "www.gmail.com" 
    end tell 
end if 
continue quit 

을 종료 끝

를 종료하지만 나를 위해 작동하지 않습니다 :

나는이 스크립트 코드를 시도!

누구나 내가 잘못 생각할 수있는 곳을 제안 할 수 있습니까 ??

덕분에,

Miraaj

+0

실제로 ActionScript를 사용하기 때문에 SuperUser.com에 대한 더 많은 도움을 얻을 수 있습니다. – prodigitalson

+0

Miraaj, 수퍼 유저에게이 질문을 했습니까? 나는 아무것도 발견하지 못하고 확인했다. 나는 비슷한 것을 궁금해한다 : 외부 모니터가 연결되거나 연결이 끊어졌을 때 애플 스크립트를 작동시킨다. – physicsmichael

답변

0

나는 열려있는 응용 프로그램을 유지로 저장할 때 지금 노력하고 있습니다! :)