Text size look causing error
Text size look causing error
- Subject: Text size look causing error
- From: email@hidden
- Date: Fri, 08 Sep 2006 11:28:59 -0400
Hi all,
Since my last message proved fruitful in ways of response... I thought
I'd send out another plea...
I keep geeting the following error message: "Adobe Illustrator got an
error: Invalid range." with this bit of a script:
set textArtItemCount to count text frames of document 1
repeat with itemCount from 1 to textArtItemCount
set textRef to text of text frame itemCount of document 1 as
reference
if (size of textRef < 5.0) then
set scaleto to 200
end if
end repeat
It seems to hang up on the 5.0 range.
Any ideas as to what to do about this? What I am trying to do here is
loop through all of the text in a document in Illustrator, and if there
is any that is less than 5 points, then set the scaling factor of the
document to 200%. (Later in the script the scaled document is then
exported as a jpg or a gif based on other parameters set, but that part
of the script is working ok!)
Thanks in advance for your help!
--Jennie
________________________________________________________________________
Check out AOL.com today. Breaking news, video search, pictures, email
and IM. All on demand. Always Free.
_______________________________________________
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