Re: InDesign Paragraph Style Application
Re: InDesign Paragraph Style Application
- Subject: Re: InDesign Paragraph Style Application
- From: Shane Stanley <email@hidden>
- Date: Tue, 14 Jul 2009 08:42:54 +1000
- Thread-topic: InDesign Paragraph Style Application
On 13/7/09 11:55 PM, "Roy McCoy" <email@hidden> wrote:
>> Adobe InDesign CS4 got an error: Invalid value for parameter 'using'
>> of event 'apply paragraph style'. Expected paragraph style, but
>> received "3.kl.normala kun ensalto".
Right: it wants a reference to a style, not just a name. So:
set theStyle to paragraph style "3.kl.normala kun ensalto"
tell paragraph 1 of story 1
apply paragraph style using theStyle without
clearing overrides
Using references rather than just names for styles (and things like colors)
is good standard practice, and helps avoid lots of similar problems.
--
Shane Stanley <email@hidden>
AppleScript Pro Sessions <http://scriptingmatters.com/aspro>
_______________________________________________
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