1
AppleScriptを使って曲ファイルを再生する方法
わかりましたので、私は歌を歌うapplescriptアプリが欲しいです。曲はまだコンピュータ上にはなく、アプリのパッケージコンテンツのコンテンツ/リソース内に含まれています。これは私の現在のコードです tell application "Finder" set apppath to POSIX path of (application file id "com.apple.ScriptEditor.id.play" as text) end tell set song to {apppath, "/Contents/Resources/song.mp3"} as string set songpath to POSIX file song as text tell application "QuickTime Player" activate open songpath play the front document tell application "System Events" set visible …