InDesign CS3, apply object styles
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