私はプログラミング、特に AppleScript の初心者です。バレンタイン デーに iTunes から曲を再生し、Safari でフラッシュ アニメーション ファイルを開く簡単なスクリプトを作成しました。ScriptEditor でスクリプトを実行すると、すべてが希望どおりに機能しますが、スタンドアロン アプリケーションとしてエクスポートすると、フルスクリーン モードを有効にするコマンドで失敗します。システムイベントの問題だと思います。明確にするために、アプリケーションは最後まで機能しますが、キーストロークコマンドで警告音が聞こえ、ウィンドウはそのままです。
Yosemite を実行しており、完全に更新されています。
理想的には、Google Chrome でファイルを開いてプレゼンテーション モードを利用したいのですが、Chrome でファイルを開くことさえできません。
アドバイスをありがとう!コードは次のとおりです。
tell application "Finder"
set visible of every process whose visible is true and name is not "Finder" to false
close every window
end tell
set volume output volume 75
tell application "iTunes"
set currentVolume to sound volume
if player state is playing then
stop
back track
end if
play track "The Promise"
set player position to 6
end tell
delay 4
tell application "Safari"
activate
if (count of windows) is 0 then -- Remove "if" statement if you don't want to make a new window if there is none
make new window at front
end if
open (POSIX path of (path to home folder)) & "/Desktop/beMine/beMine.swf"
tell application "System Events"
tell process "Safari" to keystroke "f" using {command down, control down}
end tell
end tell