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

InDesign CS6, setting applied object style


  • Subject: InDesign CS6, setting applied object style
  • From: Håvard Graudo <email@hidden>
  • Date: Thu, 13 Feb 2014 11:33:56 +0100

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.

What am I doing wrong:

---
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"}
		tell myTxtFrame
			get name of applied object style
			--> "[Basic Text Frame]" OK. Let's change it:
			set applied object style to "My Object Style"
			--> no error, no result, just silence
			get name of applied object style
			--> [Basic Text Frame] uh-oh. it didn't stick
		end tell
	end tell
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


  • Follow-Ups:
    • Re: InDesign CS6, setting applied object style
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Script Libraries in iCloud
  • Next by Date: Re: InDesign CS6, setting applied object style
  • Previous by thread: Re: Script Libraries in iCloud
  • Next by thread: Re: InDesign CS6, setting applied object style
  • Index(es):
    • Date
    • Thread