🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #292

Re: AppleScript do script to run a JavaScript

#292
From: Malcolm Wooden
Date: Fri, 20 Mar 2009 14:29
11 lines
1075 bytes
My ApplsScript looks like this:

set aScriptPath to "HD:Applications:Adobe InDesign CS3:Scripts:Scripts Panel:MyJScript.jsx"
tell application "Adobe InDesign CS3"
	do script alias aScriptPath language javascript
end tell

but when I run it, it errors saying:
Adobe InDesign CS3 got an error: Expected: ;

However if I run MyJScript.jsx from the ExtendScript Toolkit it will work. Any idea whay AppleScript doesn't like the script?
Technical Details
Message-ID: <59b8585f.5@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing
References: <59b8585f.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,9e87ebc19aa2c8b1
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Malcolm Wooden" <mwooden@dtptypes.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: AppleScript do script to run a JavaScript
Message-ID: <59b8585f.5@webcrossing.la2eafNXanI>
Date: Fri, 20 Mar 2009 07:29:39 -0700
References: <59b8585f.-1@webcrossing.la2eafNXanI>
Lines: 13
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit