• 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 CS6, setting applied object style
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: InDesign CS6, setting applied object style


  • Subject: Re: InDesign CS6, setting applied object style
  • From: Håvard Graudo <email@hidden>
  • Date: Thu, 13 Feb 2014 12:16:14 +0100

Den 13. feb. 2014 kl. 11.52 skrev Shane Stanley:

> On 13 Feb 2014, at 9:33 pm, Håvard Graudo <email@hidden> wrote:
>
>> How do I set the applied object style of a frame?
>>
>> I have a document with a prepared Object Style called "My Object Style", but nothing happens when I try to apply it.
>> According to the dictionary it is a get/set property of Text Frame.
>
> Try the "apply object style" command instead.


Thank you Shane!

Got this to work, for the record:

----
tell document 1 of application "Adobe InDesign CS6"
	tell page 1
		set myTxtFrame to make new text frame with properties {geometric bounds:{16, 42, 42, 84}, contents:"hello world"}
	end tell
	apply object style myTxtFrame using (get first object style whose name is "My Object Style")
end tell
----

Håvard





 _______________________________________________
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


References: 
 >InDesign CS6, setting applied object style (From: Håvard Graudo <email@hidden>)
 >Re: InDesign CS6, setting applied object style (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: InDesign CS6, setting applied object style
  • Next by Date: Upgrading to Mavericks - is it likely to break EVERYTHING!?
  • Previous by thread: Re: InDesign CS6, setting applied object style
  • Next by thread: Upgrading to Mavericks - is it likely to break EVERYTHING!?
  • Index(es):
    • Date
    • Thread