Article View: adobe.scripting.indesign
Article #2523Re: How to call applescript values?
From: Eric
Date: Sun, 14 Dec 2008 16:45
Date: Sun, 14 Dec 2008 16:45
12 lines
1222 bytes
1222 bytes
You, um, put the results into a variable? Also, like I said in my first post, if you want JS-compatible path, you need to use "posix path of". And finally, I forced it to return as text rather than as a file alias, which is what you were returning intially. This script works: var chs="tell application \"finder\"\r"; chs+="activate\r" chs+="set myPath to (choose file with prompt \"Choose\")\r"; chs+="set myPath to POSIX path of myPath as text\r" chs+="return myPath\r" chs+="end tell"; var myResults = app.doScript(chs,ScriptLanguage.APPLESCRIPT_LANGUAGE); alert( myResults );
Technical Details
Message-ID:
<59b740e9.2@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!news2!newshub.sdsu.edu!webcrossingReferences:
<59b740e9.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,ab928e8669f41924 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Eric_@_MCA@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!news2!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: How to call applescript values? Message-ID: <59b740e9.2@webcrossing.la2eafNXanI> Date: Sun, 14 Dec 2008 08:45:36 -0800 References: <59b740e9.-1@webcrossing.la2eafNXanI> Lines: 14 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit