🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #2641

Re: How to call applescript values?

#2641
From: subha_oviya
Date: Sat, 13 Dec 2008 03:55
13 lines
1114 bytes
Thanks for your reply....
I need to choose the folder and store it in a variable using applescript...
This variable need to be passed to javascript and the path has to be returned here..

tried this as follows

var chs="tell application \"finder\"\r";
chs+="set myPath to file (Choose file with prompt \"Choose\")\r";
chs+="end tell";
doScript(chs,ScriptLanguage.applescript);

how to get the value of myPath using javascript...
Please someone help me.... need it urgently
Technical Details
Message-ID: <59b740e9.1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!news2!feeder.erje.net!news4us.nl!webcrossing
References: <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: subha_oviya@adobeforums.com
Newsgroups: adobe.scripting.indesign
Subject: Re: How to call applescript values?
Message-ID: <59b740e9.1@webcrossing.la2eafNXanI>
Date: Fri, 12 Dec 2008 19:55:39 -0800
References: <59b740e9.-1@webcrossing.la2eafNXanI>
Lines: 16
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!news2!feeder.erje.net!news4us.nl!webcrossing