Article View: adobe.scripting.indesign
Article #2271Re: [JS] CS3 file.openDialog ()
From: Kasyan Servetsky
Date: Sat, 20 Dec 2008 08:18
Date: Sat, 20 Dec 2008 08:18
22 lines
1066 bytes
1066 bytes
Hi guys,
Let me put in my two cents' worth:
var myPath = app.extractLabel("RememberedPath");
if (myPath != "") {
// open the folder that was open last
var myFolder = new File(myPath);
}
else {
// open a default folder
var myFolder = new File("~/Desktop/");
}
var myFile = myFolder.openDlg("Open a File");
if (myFile != null) {
app.insertLabel("RememberedPath", myFile.absoluteURI);
// do something
}
Kasyan
Technical Details
Message-ID:
<59b75018.5@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossingReferences:
<EC6A0C909B0E62E316337EC10946A1BB@in.webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,4092301e56a7cb3f X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Kasyan Servetsky" <askoldich@yahoo.com> Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: [JS] CS3 file.openDialog () Message-ID: <59b75018.5@webcrossing.la2eafNXanI> Date: Sat, 20 Dec 2008 00:18:25 -0800 References: <EC6A0C909B0E62E316337EC10946A1BB@in.webcrossing.la2eafNXanI> Lines: 13 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit