Article View: adobe.scripting.indesign
Article #15767Script can't see libraries at first
From: Robert_Kyle
Date: Fri, 14 Nov 2003 05:37
Date: Fri, 14 Nov 2003 05:37
11 lines
1340 bytes
1340 bytes
When you quit InDesign, it quite rightly remembers which libraries were open and reopens them the next time it's launched.
However, I've noticed that if you run this script:
tell application "InDesign"
get name of every library
end tell
The result is only the name of the frontmost library. If you click on the tab of another library and re-run the script, it now returns two names. You don't get a complete list of all the open libraries until they have all been touched. They're all listed in the windows menu from the beginning, tho, so InDesign knows they're there!
We use a lot of libraries, and I was planning to use a script to help users find what they need. But I'm snagged on the first question: Which libraries are open?
Technical Details
Message-ID:
<2cce6267.-1@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webxShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,12f64e21b7188266,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-11-13 21:37:39 PST From: Robert_Kyle@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Script can't see libraries at first Message-ID: <2cce6267.-1@webx.la2eafNXanI> Date: Thu, 13 Nov 2003 21:37:11 -0800 Lines: 18 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit