Re: InDesign: Applied Language Property of Paragraph Style
Re: InDesign: Applied Language Property of Paragraph Style
- Subject: Re: InDesign: Applied Language Property of Paragraph Style
- From: David Wolfe <email@hidden>
- Date: Wed, 14 Mar 2007 18:02:26 -0400
Thank you Shane!
This works perfectly. But I don't understand why "... styles 2 thru
-1" works for every paragraph style. I had been trying repeat loops
with "from 1 to (count of paragraph styles)" to no avail.
Thanks again,
David Wolfe
On Mar 14, 2007, at 5:48 PM, Shane Stanley wrote:
On 15/3/07 7:42 AM, "David Wolfe" <email@hidden> wrote:
Does anyone know the proper way to set the applied language property
of a paragraph style? The dictionary doesn't seem to spell it out and
the only examples given in the documentation for InDesign Scripting
don't work. I just get error messages that say "Cannot set <class
plng> of 1 to 84." I'm trying to set every paragraph style's applied
language to Spanish: Castilian. I've tried by id and by name.
tell application "Adobe InDesign CS2"
set theLingo to language with vendors "Spanish: Castilian"
tell document 1
set applied language of paragraph styles 2 thru -1 to theLingo
end tell
end tell
--
Shane Stanley <email@hidden>
AppleScript Pro Denver, June 2007 <http://scriptingmatters.com/aspro>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
40settingpace.com
Archives: http://lists.apple.com/archives/applescript-users
This email sent to 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:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden