🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #453

Re: AppleScript do script to run a JavaScript

#453
From: Shane_Stanley
Date: Fri, 20 Mar 2009 22:03
17 lines
1727 bytes
On 21/3/09 1:29 AM, "Malcolm Wooden" <member@adobeforums.com> wrote:

> Adobe InDesign CS3 got an error: Expected: ;

You'll get that error if your path is incorrect. Try it this way and you'll
find out:

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


-- 
Shane Stanley <sstanley@myriad-com.com.au>
AppleScript Pro Sessions <http://scriptingmatters.com/aspro>
Technical Details
Message-ID: <C5EA5DEF.4F8B2%sstanley@myriad-com.com.au>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.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: Shane_Stanley@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: AppleScript do script to run a JavaScript
Message-ID: <C5EA5DEF.4F8B2%sstanley@myriad-com.com.au>
Date: Fri, 20 Mar 2009 15:03:43 -0700
References: <59b8585f.-1@webcrossing.la2eafNXanI>
Lines: 21
Received: from outbound.icp-qv1-irony-out4.iinet.net.au [203.59.1.150] by adobeforums.com; Fri, 20 Mar 2009 15:04:23 -0700
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AvgBAEGvw0l8qDsk/2dsb2JhbAAI1RuDfQY
X-IronPort-AV: E=Sophos;i="4.38,397,1233500400"; 
   d="scan'208";a="328608994"
Received: from unknown (HELO [10.1.1.4]) ([124.168.59.36])
  by outbound.icp-qv1-irony-out4.iinet.net.au with ESMTP; 21 Mar 2009 07:03:48 +0900
User-Agent: Microsoft-Entourage/12.15.0.081119
Thread-Topic: AppleScript do script to run a JavaScript
Thread-Index: Acmpp7ur5/l63vcJtUm7JfilK6oggg==
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit