Re: script to open Adobe Illustrator (CS3) and replace certain fonts
Re: script to open Adobe Illustrator (CS3) and replace certain fonts
- Subject: Re: script to open Adobe Illustrator (CS3) and replace certain fonts
- From: "Todd Biggins" <email@hidden>
- Date: Tue, 26 Feb 2008 15:27:44 -0500
Still having trouble but I got further...
I tried the following Applescript (based
on an Illustrator action of "Myriad Pro to Webding" from Action
set "Change Fonts")
The action does a Find Font: Myriad
Pro, Replace with: Webdings, Change All: Yes
When it runs, only some of the documents
that have Myriad Pro switch fonts to Webdings in the new files.
If anyone knows how to fix this, it
would be appreciated. Thanks!
---------
set sourceFolder to choose folder with
prompt "Source folder?"
tell application "Finder"
to set fileList to every file of folder sourceFolder as alias list
set destinationFolder to choose folder
with prompt "Destination folder?"
set destinationPath to destinationFolder
as string
repeat with aFile in fileList
tell
application "Finder" to set fileName to name of aFile
set
newFilePath to destinationPath & fileName
tell
application "Adobe Illustrator"
open aFile
activate
do script "Myriad Pro to Webding"
from "Change Fonts" without dialogs
save current document in file newFilePath
close current document saving no
end
tell
set
i to 1
end repeat
--------------------- _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden