Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
xcode 3.2 で AppleScript を使用して、アプリケーションを「グラブ」してウィンドウをキャプチャする必要があります。これのスクリプトは何でしょうか?
AppleScript World で直接使用できるものは見つからなかったのでscreencapture、コマンド ライン ツールを使用してスクリプトから呼び出すことをお勧めします。Terminal.appで実行man screencaptureして、その manUAL を確認します。
screencapture
man screencapture
補足: シェル スクリプトを実行するための AppleScript コマンドはdo shell script(「StandardAdditions」から) です。
do shell script
(「グラブ」は AppleScript をサポートしていません)