Re: Open File in Illustrator CS
Re: Open File in Illustrator CS
- Subject: Re: Open File in Illustrator CS
- From: Richard Allaway <email@hidden>
- Date: Mon, 17 Oct 2005 12:52:42 -0400
On Monday, October 17, 2005, at 08:42AM, <email@hidden> wrote:
>Hi Richard,
>
>Thanks for your reply. I have tried this but I still need to check for
>font errors and at the moment the only way I can do that is by the
>'Font Problems' dialog. If I turn off the dialogs from showing then I
>won't be able to catch this error.
In fact you'd think that specifying a file to open and NOT asking for "without dialogs" would do just what you expect. I'd say you or I should report it as a bug to Adobe.
>But sadly, I can find no way of changing the font through scripting. I
>found similar questions to changing fonts on the Adobe Forum and
>elsewhere but no one ever answered their questions so I'm guessing it
>might not be possible?
There doesn't seem to be a huge amount of support for Illustrator scripters out there (or maybe we're just a bit shy?). Anyway, here's an example of how to change fonts in Illustrator CS "text frames"
tell application "Illustrator CS"
set repFont to text font "Bauhaus93"
tell current document
repeat with textFrame in (get every text frame)
set textFrame's text's text font to repFont
end repeat
end tell
end tell
notice you have to define the font outside the "tell current document" block because fonts belong to the application. And you have to get at the the text frame's "text font" property through it's "text" property. I'd like to hear, by the way, if you come up with a better way of checking for missing fonts.
Richard
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden