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: Rob Stott <email@hidden>
- Date: Thu, 5 Feb 2009 10:05:58 +0000
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...
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.
|
_______________________________________________
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