Re: unable to execute javascript via applescript in acrobat - result "undefined"
Re: unable to execute javascript via applescript in acrobat - result "undefined"
- Subject: Re: unable to execute javascript via applescript in acrobat - result "undefined"
- From: Stephan Peterson <email@hidden>
- Date: Thu, 5 Feb 2009 14:19:24 -0600
Rob,
That was the trick. It's still weird that on some machines I can still do this:
do script "app.alert('hello world');"
Not sure why it works on some but not others. Nice that I have a fix though.
Stephan
On Thu, Feb 5, 2009 at 2:02 PM, Stephan Peterson <email@hidden> wrote:
> Rob,
>
> That was the trick. It's still weird that on some machines I can still do this:
>
> do script "app.alert('hello world');"
>
> Not sure why it works on some but not others. Nice that I have a fix though.
>
> Stephan
>
> On Thu, Feb 5, 2009 at 4:05 AM, Rob Stott
> <email@hidden> wrote:
>>
>> On 5 Feb 2009, at 09:30, Rob Stott wrote:
>>
>> However, somewhere in the back of my mind I remember that you 'do script'
>> used to fail if you used Unicode text - back in the bad old days I used to
>> have to convert it to plain text.
>>
>> Looks like I might be right, there's a discussion here...
>> http://www.adobeforums.com/webx/.3c063a24
>> The last post in the thread suggests a workaround that works for me,
>> although it's a bit clumsy. You have to write your JavaScript to a plain
>> text file, then use 'do script' like this...
>> tell application "Adobe Acrobat Professional"
>> do script file "Macintosh HD:Users:robstott:Desktop:test.txt" as alias
>> end tell
>> ...obviously subsititute the path to your own text file. As I said, kind of
>> a nasty bodge but at least it works.
>> r.
>>
>> ---
>> Rob Stott
>> Production Workflow Developer
>> www.s-brandingsolutions.com
>>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden