• 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
Re: INDESIGN: Scripting Object Layer Options (Graphic Layer Options)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: INDESIGN: Scripting Object Layer Options (Graphic Layer Options)
      • From: Michael Slomski <email@hidden>
References: 
 >INDESIGN: Scripting Object Layer Options (Graphic Layer Options) (From: Rick Gordon <email@hidden>)

  • Prev by Date: INDESIGN: Scripting Object Layer Options (Graphic Layer Options)
  • Next by Date: Re: INDESIGN: Scripting Object Layer Options (Graphic Layer Options)
  • Previous by thread: INDESIGN: Scripting Object Layer Options (Graphic Layer Options)
  • Next by thread: Re: INDESIGN: Scripting Object Layer Options (Graphic Layer Options)
  • Index(es):
    • Date
    • Thread