Re: Open File in Illustrator CS
Re: Open File in Illustrator CS
- Subject: Re: Open File in Illustrator CS
- From: Shane Stanley <email@hidden>
- Date: Mon, 17 Oct 2005 23:28:30 +1000
- Thread-topic: Open File in Illustrator CS
On 17/10/05 10:42 PM, "email@hidden" <email@hidden> wrote:
> I was going to try a rough work around of creating a text frame,
> putting a character in it and then changing the font of the character
> to every font that should be in the file (I can read into the file and
> get the font names). The thought is that if I can't change the font of
> the character then there's either an error or I don't have that font.
I don't really understand what you're trying to achieve, but if you can get
the fonts in the file, why can't you compare that to the list of fonts open
-- AI's "text font" element?
> 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?
Sure you can:
set theFont to text font 1
tell document 1
set text font of text range of text frame 1 to theFont
end tell
--
Shane Stanley <email@hidden>
_______________________________________________
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