我从事平面设计工作,想要自动创建一个自动的脚本:
我对Applescript很陌生,所以打字非常慢,并使用小词,以便我能理解。
到目前为止,这是我用代码的方式提出的:
tell application "Adobe InDesign CS5"
set myDocument to open "cm:Graphic_Design:Design Studio Templates:Brochure_042012_001:Brochure_042012_001.indt"
end tell
tell application "Finder"
make new folder at folder "Work" of folder "Graphic_Design" of disk "cm" with properties {name:"untitled folder"}
set name of folder "untitled folder" of folder "Work" of folder "Graphic_Design" of disk "cm" to pbpaste
end tell
答案 0 :(得分:0)
尝试:
tell application "Finder" to set newFolder to make new folder at "cm:Graphic_Design:Work" with properties {name:(the clipboard as text)}
tell application "Adobe InDesign CS5"
tell active document to save saving in (newFolder as text)
end tell