Re: InDesign CS6, setting applied object style
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