Re: INDESIGN: Scripting Object Layer Options (Graphic Layer Options)
Re: INDESIGN: Scripting Object Layer Options (Graphic Layer Options)
- Subject: Re: INDESIGN: Scripting Object Layer Options (Graphic Layer Options)
- From: Shane Stanley <email@hidden>
- Date: Sat, 28 Mar 2009 21:09:53 +1100
- Thread-topic: INDESIGN: Scripting Object Layer Options (Graphic Layer Options)
On 28/3/09 7:59 PM, "Rick Gordon" <email@hidden> wrote:
> Is there any way to script Object Layer Options (graphic layer options???) --
> setting the visibility of particular layers of a placed Photoshop file in
> InDesign CS3?
Try something like this:
tell application "Adobe InDesign CS3"
tell document 1
tell graphic layer options of graphic 1 of page item 1
set update link option to keep overrides
set current visibility of graphic layer 2 to true
end tell
end tell
end tell
It gets a bit tricky with nested graphic layers -- you should be able to do
it recursively, but in practice you need to decide on a number of levels and
use brute force.
--
Shane Stanley <email@hidden>
AppleScript Pro Sessions <http://scriptingmatters.com/aspro>
_______________________________________________
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