私はApplescriptを使用してOSXFinderのいくつかのタスクを自動化しています。スクリプトはフォルダを開き、そのフォルダの最初の画像を選択します。「クイックルック」ウィンドウも表示したいと思います(ユーザーがスペースバーを押したかのように)。
qlmanageを使用してコマンドラインからクイックルックを起動する方法を見つけましたが、静的なクイックルックウィンドウが表示され、ファインダーの選択に関連付けられなくなりました。
これまでのコード:
property folderPath : "/Volumes/Media/Images"
on run {}
tell application "Finder"
activate
set imageFolder to folder (folderPath as POSIX file)
set imageFile to first item of imageFolder
select imageFile
-- show quick look?
end tell
end run