• 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 CS3, apply object styles
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

InDesign CS3, apply object styles


  • Subject: InDesign CS3, apply object styles
  • From: Håvard Graudo <email@hidden>
  • Date: Wed, 21 Nov 2007 15:30:24 +0100

I want apply an object style to a rectangle, but cannot find the syntax to apply it by its name parameter.


I have an object style in my document named exactly "skyggebilde". I have tried many ways, but cannot get it to work:

---
tell document 1 of application "Adobe InDesign CS3"
tell page 1
set myRectFrame to make new rectangle with properties {10, 10,100, 100}
tell myRectFrame
--apply object style using "skyggebilde"
--set applied object style to object style "skyggebilde"
set applied object style to object style id 201
end tell
end tell
end tell
---


apply object style using "skyggebilde" --> this runs without error, but does nothing!

set applied object style to object style "skyggebilde"
--> this errors

set applied object style to object style id 201
--> this works! but i don't want to address it by id

and also outside the tell block, "apply object style myRectFrame using "skyggebilde"
--> errors


This must be so easy, can someone point me in the right direction?

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 CS3, apply object styles
      • From: seuzo <email@hidden>
  • Prev by Date: Re: Init Caps Handler
  • Next by Date: Re: Init Caps Handler
  • Previous by thread: Processing RSS feeds in Mail.app?
  • Next by thread: Re: InDesign CS3, apply object styles
  • Index(es):
    • Date
    • Thread