Article View: adobe.photoshop.scripting
Article #108Re: Get the current absolute path name?
From: Paul_R
Date: Wed, 11 Mar 2009 14:40
Date: Wed, 11 Mar 2009 14:40
12 lines
890 bytes
890 bytes
If using CS3 or CS4
alert($.fileName);
or this should work on all versions.
function WhoAmI() {
var where;
try {var F = FO;
}catch( err ) {where = File(err.fileName);}
return where;
};
NB: Neither will work if you are using binary scripts!
Technical Details
Message-ID:
<59b82959.2@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!news2.glorb.com!newsfeed.news2me.com!newshub.sdsu.edu!webcrossingReferences:
<59b82959.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f5839,a4bbbdaad6311443 X-Google-Attributes: gidf5839,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Paul_R@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!news2.glorb.com!newsfeed.news2me.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.photoshop.scripting Subject: Re: Get the current absolute path name? Message-ID: <59b82959.2@webcrossing.la2eafNXanI> Date: Wed, 11 Mar 2009 07:40:23 -0700 References: <59b82959.-1@webcrossing.la2eafNXanI> Lines: 12 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit