Article View: adobe.photoshop.scripting
Article #364Re: Promblem in opening file through scripting?
From: christoph_pfaffenbichler
Date: Fri, 27 Feb 2009 11:20
Date: Fri, 27 Feb 2009 11:20
14 lines
1142 bytes
1142 bytes
"~/Desktop/� /Filename"
or
"/Volumename/Foldername/�/Filename"
I guess. (With ��� meaning: The names of the folders in sequence.)
But be aware that spaces and other keys might cause problems.
Or do You mean You want to be allowed to select a file?
In which case I would use:
var theFile = File.openDialog ("open", false);
photoshop.open(theFile);
And for more files one could use:
var theFiles = File.openDialog ("open", true);
for (var m=0; m<theFiles.length; m++) { photoshop.open(theFiles[m]) };
Technical Details
Message-ID:
<59b7e174.0@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b7e174.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f5839,1ff8c39fe66663eb X-Google-Attributes: gidf5839,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII From: christoph_pfaffenbichler@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.photoshop.scripting Subject: Re: Promblem in opening file through scripting? Message-ID: <59b7e174.0@webcrossing.la2eafNXanI> Date: Fri, 27 Feb 2009 03:20:09 -0800 References: <59b7e174.-1@webcrossing.la2eafNXanI> Lines: 16 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit