Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Viewing all articles
Browse latest Browse all 37788

Converting Simple Indesign AppleScript to Javascript

$
0
0

Hi,

 

I have been using as imple Indesign AppleScript but need to convert it to javascript and have no prior experience.  I've been reading the Adobe pdf about scripting and it is great as it shows the differences between the 3 (as, js, vb) but I'm still having trouble figuring out how this would conver.  Would anyone be able to show me the converted result?

 

AppleScript:

tell application "Adobe InDesign CS5.5"

     tell every document
          set visible of layer "Interactive - Web" to true
          set visible of layer "Interactive - Print" to false
     end tell
end tell

 

Javascript:

var myDocuments = app.documents.everyItem(); // something like this?

 

It hides/shows the visibility of 2 specific layers for all opened documents.  I pretty much need to hide/show 2 specific layers ina  book and this should/can accomplish that.

 

Thanks for any help!


Viewing all articles
Browse latest Browse all 37788

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>