🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1211

Re: [CS3 JS] Help with script that batch turns layers on and off

#1211
From: hmtyrant
Date: Sun, 15 Feb 2009 21:25
11 lines
1022 bytes
Here is what I have done.

I am not great at scripting

var myFileLocation = Folder.selectDialog("Please select path to files");
myFolder = new Folder ([myFileLocation]);
myFolderContents = myFolder.getFiles("*.indd"); // array
var myDocument = app.documents[0];
var answersLayer = myDocument.layers.item("answers");
answersLayer.visible = false;
app.activeDocument.close(SaveOptions.yes);
Technical Details
Message-ID: <59b7ef63.3@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing
References: <59b7ef63.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,42c96ab71325657f
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: hmtyrant@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: [CS3 JS] Help with script that batch turns layers on and off
Message-ID: <59b7ef63.3@webcrossing.la2eafNXanI>
Date: Sun, 15 Feb 2009 13:25:03 -0800
References: <59b7ef63.-1@webcrossing.la2eafNXanI>
Lines: 12
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit