如何将文件保存在同一个文件夹中

时间:2017-10-30 20:29:55

标签: applescript automator adobe-illustrator

我尝试使用automator运行applescript,以使用新名称将Illustrator文件保存在其原生文件夹中。有关我的AppleScript的任何帮助吗?必须声明一条路径。

on run {input, parameters}
  tell application "Adobe Illustrator"
    set allMyItems to every path item of current document whose fill color is {cyan:0.0, magenta:0.0, yellow:0.0 black:100.0}
    repeat with myItem in allMyItems
      set fill color of myItem to {cyan:0.0, magenta:0.0, yellow:0.0 black:0.0}
    end repeat
    set theDestination to path to parentfolder
    save current document as eps
    close current document
  end tell
  return input
end run

0 个答案:

没有答案