Re: Illustrator text loop scripting trouble
Re: Illustrator text loop scripting trouble
- Subject: Re: Illustrator text loop scripting trouble
- From: Stan Cleveland <email@hidden>
- Date: Mon, 11 Sep 2006 13:12:02 -0700
- Thread-topic: Illustrator text loop scripting trouble
On 9/11/06 12:53 PM, email@hidden wrote:
> I keep getting an the following error when I run this script:
> "Adobe Illustrator got an error: requested property not available for
> this object."
>
> Can someone help me troubleshoot this?
>
>
> tell application "Adobe Illustrator"
> set textArtItemCount to count text frames of document 1
> repeat with itemCount from 1 to textArtItemCount of document 1 as
> reference
> set sizeList to size of textRef
> repeat with indexCount from 1 to length of sizeList
> if (item indexCount of sizeList = 12) then
> set size of character indexCount of text frame itemCount of
> document 1 to 18
> end if
> end repeat
> end repeat
> end tell
Your variable "textRef" is undefined. It may have been overlooked or was it
perhaps defined outside the given snippet?
Also, as Yvan pointed out, your index loop should start as "repeat with
itemCount from 1 to textArtItemCount" and should NOT include the text "of
document 1 as reference". Perhaps that latter bit is the end of a partially
omitted definition for "textRef"?
Stan C.
_______________________________________________
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