Article View: adobe.scripting.indesign
Article #9618Re: Using computer name instead of drive letters (JA).
From: Eric
Date: Sun, 23 Jul 2006 05:35
Date: Sun, 23 Jul 2006 05:35
22 lines
1432 bytes
1432 bytes
You should check out the "ExportAllStories" sample script on your InDesign CD. It sort of deals with this stuff. I think that file format in JS is always "/volume/folder/file.ext", so it might start out with "/Server1/Graphics", but to be honest I mostly work in AS.
The script I'm talking about uses Folder.selectDialog to set myFolder and then exports in a different spot below:
myFolder= Folder.selectDialog ("Choose a Folder");
and
myFileName = "StoryID" + myID + myExtension;
myFilePath = myFolder + "/" + myFileName;
myFile = new File(myFilePath);
myStory.exportFile(myFormat, myFile);
At the very least if you choose a myFolder location on the server like the above example you can do an alert(myFolder) to find out what you chose...
Technical Details
Message-ID:
<3bc0fc9d.0@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!newsfeed.freenet.de!news.albasani.net!news.ecp.fr!news.stben.net!webcrossingReferences:
<3bc0fc9d.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,4a0f57b8a2c6a964 X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Eric_@_MCA@adobeforums.com Newsgroups: adobe.scripting.indesign Subject: Re: Using computer name instead of drive letters (JA). Message-ID: <3bc0fc9d.0@webcrossing.la2eafNXanI> Date: Sat, 22 Jul 2006 22:35:53 -0700 References: <3bc0fc9d.-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!news1.google.com!news.germany.com!newsfeed.freenet.de!news.albasani.net!news.ecp.fr!news.stben.net!webcrossing