1
我正在尝试为Photoshop调整大小和水印多张照片来编写一个Applescript液滴。我想捆绑水印图像并保存为应用程序,以便我可以将其分发到我的组织中,但我似乎无法使脚本查看捆绑的资源。AppleScript - 找不到捆绑的资源
我拖着我的“watermark.png”形象的“包内容”栏,并使用下列文件处理的语句是:
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.
我需要做些特别的事情来确保脚本能够找到捆绑的资源吗?
感谢您的回复。我也与\t \t \t \t“我的文件”设置为(路径资源“watermark.png”在我的捆绑路径)作为文本“ – jefflovejapan 2011-12-28 17:43:19