複数の写真のサイズを変更して透かしを入れる Photoshop 用の Applescript ドロップレットを作成しようとしています。透かし画像をバンドルしてアプリとして保存し、組織内で配布できるようにしたいのですが、スクリプトでバンドルされたリソースを表示できないようです。
「watermark.png」画像を「Bundle Contents」サイドバーにドラッグし、次のファイル処理ステートメントを使用しています。
on process_item(this_item)
set myPath to alias this_item as text
tell application "Adobe Photoshop CS5.1"
open file myPath
set thisDocument to current document
set ruler units of settings to pixel units
resize image thisDocument width 640
set wmPath to path to resource "watermark.png"
open file wmPath
end tell
end process_item
しかし、私は常に次のエラーが発生します:
Resource not found.
スクリプトがバンドルされたリソースを確実に見つけられるようにするために何か特別なことをする必要がありますか?