使用 Applescript 在 Photoshop 中打开文件
我正在尝试使用 Applescript 在 Photoshop 中自动执行任务。
尝试打开文件时:
tell application "Adobe Photoshop CS5"
-- Open the first image
set filePath to alias "Users:jameshale:Pictures:DSC_1273.jpg"
with timeout of 5 seconds
open filePath as Camera RAW
end timeout
end tell
结果出现错误:
error "Adobe Photoshop CS5 got an error: Can’t get alias \"Users:jameshale:Pictures:DSC_1273.jpg\"." number -1728
我做错了什么?
-J
I am trying to use Applescript to automate a task in photoshop.
When attempting to open a file:
tell application "Adobe Photoshop CS5"
-- Open the first image
set filePath to alias "Users:jameshale:Pictures:DSC_1273.jpg"
with timeout of 5 seconds
open filePath as Camera RAW
end timeout
end tell
The result is an error:
error "Adobe Photoshop CS5 got an error: Can’t get alias \"Users:jameshale:Pictures:DSC_1273.jpg\"." number -1728
What am I doing wrong?
-J
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
别名路径在根中包含 HD 名称。所以你需要将你的一行更改为这一行
An alias path includes the HD name in the root. So you need to change your one line to this