私はちょっと変わったことがあり、上に拡大した半AppleScriptハーフシェルスクリプトを思いついた。
これは、部分的なファイル名(スペースで区切られたもの)の入力を求め、一番上のFinderウインドウを見つけて現在のフォルダの場所(検索元のルートフォルダ)を見つけ出し、シェルを使用して追加します検索クエリ(完全ではなく部分的なファイル名)に星印を付けるには、既にFinderで開いている 'root'フォルダからfindコマンドを実行します。見つかったファイルはPhotoshopで開きます。
tell application "Finder"
try
activate
beep 1
display dialog "Enter your image search:" default answer ""
set dialogInfo to result
set imgquery to text returned of dialogInfo
set frontWin to folder of front window as string
set frontWinPath to (get POSIX path of frontWin)
tell application "Terminal"
activate
set starredImgQuery to do shell script "echo " & quoted form of imgquery & " | sed 's/ /\\* */g'"
set starredImgQuery to "*" & starredImgQuery & "*"
do shell script "cd \"" & frontWinPath & "\";for f in " & starredImgQuery & "; do find . -name \"$f\" -exec open -a \"/Applications/Adobe Photoshop CS4/Adobe Photoshop CS4.app\" {} \\;; done"
end tell
tell application "Terminal" to quit
on error error_message
beep
display dialog error_message buttons ¬
{"OK"} default button 1
end try
end tell
シェルコマンドが素晴らしいです!
Photoshopが起動しなかったので、私は完全なパスを使いました。また、ファイル名には*が必要でしたが、私はそれについて言及していませんでした。私のせいです): for f * * 0299 * * 0327 * * d_0340 *;見つけてください。 -name "$ f" -exec open -a "/アプリケーション/ Adobe Photoshop CS4/Adobe Photoshop CS4.app" {} \ ;;完了 ありがとうチャック - あなたの親切な助けに感謝! –