我看了一下Adobe论坛,有一个AppleScript可以做到打印文件夹内的所有Ai文件。复制以下内容,然后粘贴到 应用程序>AppleScript>脚本编辑器 内,然后保存到 应用程序>AI>预设>脚本 里。
复制内容到剪贴板
代码:
--get a sourceFolder that holds the files to print
set sourceFolder to (choose folder with prompt "Choose a folder with files to print:") as text
-- get a list of files of the files to be printed in the sourceFolder
tell application "Finder" to set workingFiles to (every file of folder sourceFolder) as alias list
repeat with workingFile in workingFiles
tell application "Adobe Illustrator"
open workingFile
set currentFile to front document
set vertPos to (height of currentFile) * 0.075
set horzPos to (width of currentFile) * 0.05
-- make temp info layer
make new layer at beginning of currentFile with properties ¬
{name:"temp info layer"} returning tempLayer
end tell
-- these lines don't address AI
set textBlock to "file: " & currentFile's name & return & ¬
"date: " & (current date)
set infoStamp to setContents(currentFile, tempLayer, textBlock)
tell application "Adobe Illustrator"
set infoStamp's position to {horzPos, vertPos}
print currentFile without «class EDlg»
delete tempLayer
close currentFile without saving
end tell -- bye, AI
end repeat
-- this handler is its own self-contained command that
-- requires its own tell block
on setContents(currentDoc, defLyr, textContents)
tell application "Adobe Illustrator"
tell currentDoc
make new text frame at end of defLyr with properties ¬
{contents:textContents} returning textStamp
set size of text of textStamp to 8
end tell
end tell
return textStamp
end setContentswindows系统的话,就不知道行不行了。
[
本帖最后由 Dustalker 于 2008-4-21 13:28 编辑 ]