How to Export Illustrator to PDF and PDF to Postscript in a script ?
hi everyone,
its possible export illustrator pdf , pdf postscript in script
can suggest how start... applescript or javascript
thanks,
karthick
this stripped down version of applescript got years ago somewhere on adobe website. works dragging , dropping illustrator files onto finder icon of script when saved application.
property extension_list : {"ai"}
on open these_items
--display dialog "only files extension \".ai\" processed script." buttons {"cancel", "ok"} default button 2
repeat with i from 1 to the count of these_items
set this_item to item i of these_items
set the item_info to info for this_item
try
set this_extension to the name extension of item_info
on error
set this_extension to ""
end try
if (folder of the item_info is false) and (alias of the item_info is false) and (this_extension is in the extension_list) then
process_item(this_item)
end if
end repeat
end open
on process_item(this_item)
tell application "adobe illustrator"
with timeout of 600 seconds
set user interaction level to never interact
open this_item as alias without dialogs
set documentname to name of current document as string
set the character_count to the number of characters of the documentname
set shortname to (characters 1 thru (character_count - 3) of documentname) as string
save current document in file {"your destination folder path goes here" & shortname & ".pdf"} as pdf with options {pdf preset:"the name of pdf preset goes here"}
close current document saving no
set user interaction level to interact all
end timeout
end tell
end process_item
sorry, don't have "pdf postscript" part of request.
More discussions in Illustrator
adobe
Comments
Post a Comment