• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: InDesign Paragraph Style Application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: InDesign Paragraph Style Application


  • Subject: Re: InDesign Paragraph Style Application
  • From: Roy McCoy <email@hidden>
  • Date: Wed, 15 Jul 2009 04:06:25 +0200

Shane Stanley wrote:

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.

Thanks, but still not working. Here's one of the ten at random:

tell application "Adobe InDesign CS4"
	set theStyle to paragraph style "2.kl.normala sen ensalto"
	tell paragraph 1 of story 1
		apply paragraph style using theStyle without clearing overrides
	end tell
end tell

This gives:

Adobe InDesign CS4 got an error: Can’t get paragraph style "2.kl.normala sen ensalto".


Ha. And if on a hunch I add "of document 1" following the name of the style, it seems to get the style all right but then it says:

Adobe InDesign CS4 got an error: paragraph 1 of story 1 doesn’t understand the apply paragraph style message.

And I've got a lot of text here I have to style fast, durn.


Thanks,

Roy McCoy

_______________________________________________
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
  • Follow-Ups:
    • Re: InDesign Paragraph Style Application
      • From: Rick Gordon <email@hidden>
References: 
 >Re: InDesign Paragraph Style Application (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Opening and modifying a .plist file with System Events
  • Next by Date: Re: InDesign Paragraph Style Application
  • Previous by thread: Re: InDesign Paragraph Style Application
  • Next by thread: Re: InDesign Paragraph Style Application
  • Index(es):
    • Date
    • Thread