2

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

やめる

しかし、それは私のために働いていません!

誰かが私が間違っているかもしれない場所を提案できますか??

ありがとう、

ミラージュ

4

1 に答える 1

0

開いたままのアプリケーションとして保存したところ、今は機能しています!:)

于 2010-06-09T14:26:14.597 に答える