🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #2093

Re: Access Standard InDesign Menu

#2093
From: loic_aigon
Date: Thu, 08 Jan 2009 22:04
16 lines
1479 bytes
Hi,
Way 1:
var myFiles = [File(".../file1.indd"),File(".../file2.indd"),etc.]
for(i=0; i<myFiles.length; i++) { app.open(myFilesArr[i]); }

      Error was generated from the variable mismatch name (myFiles/myFilesArr)
      var myFiles = [File(".../file1.indd"),File(".../file2.indd"),etc.]
      for(i=0; i<myFiles.length; i++) { app.open(myFiles[i]); } This works.




Way 2:
var myFolder = Folder.selectDialog("Choose a folder");
var myFiles = Folder(myFolder).getFiles("*.indd")
for(i=0; i<myFiles.length; i++) { app.open(myFiles[i]); } This works more or less. You don't really care about the files being greyed cause you are not requested to select files but a folder which contains indesign files. If there is any, they will be opened. However, this method works weirdly on mac and was deeply detailed By Dave Saunders on his blog.
Technical Details
Message-ID: <59b773b7.4@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!news2.glorb.com!feeder.erje.net!news4us.nl!webcrossing
References: <59b773b7.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,c4b48153d65cf6b0
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: loic_aigon <loic_aigon@yahoo.fr>
Newsgroups: adobe.scripting.indesign
Subject: Re: Access Standard InDesign Menu
Message-ID: <59b773b7.4@webcrossing.la2eafNXanI>
Date: Thu, 8 Jan 2009 14:04:26 -0800
References: <59b773b7.-1@webcrossing.la2eafNXanI>
Lines: 21
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!news2.glorb.com!feeder.erje.net!news4us.nl!webcrossing