Article View: adobe.scripting.indesign
Article #9947Re: [JS & AS] do script
From: Dave_Saunders
Date: Thu, 13 Jul 2006 15:19
Date: Thu, 13 Jul 2006 15:19
9 lines
1087 bytes
1087 bytes
I think that you need to do two things: 1. Pass a file object not a string. If you pass a string, the scripting engine thinks that the string is intended to be the script, not the file location of the script. 2. Tell the scripting engine that the script is a JavaScript -- the .jsx alone won't do that because you're using AppleScript. I'm fairly sure that this came up within the last few weeks and Shane provided the correct syntax. Try a forum search on 'doScript'. Dave
Technical Details
Message-ID:
<3bc0e69d.2@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!news.motzarella.org!news.ecp.fr!news.stben.net!webcrossingReferences:
<3bc0e69d.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,47b05d273645c4f1 X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Dave_Saunders@adobeforums.com Newsgroups: adobe.scripting.indesign Subject: Re: [JS & AS] do script Message-ID: <3bc0e69d.2@webcrossing.la2eafNXanI> Date: Thu, 13 Jul 2006 08:19:05 -0700 References: <3bc0e69d.-1@webcrossing.la2eafNXanI> Lines: 13 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!news.motzarella.org!news.ecp.fr!news.stben.net!webcrossing