• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: unable to execute javascript via applescript in acrobat - result "undefined"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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...

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

References: 
 >unable to execute javascript via applescript in acrobat - result "undefined" (From: Stephan Peterson <email@hidden>)
 >Re: unable to execute javascript via applescript in acrobat - result "undefined" (From: Stephan Peterson <email@hidden>)
 >Re: unable to execute javascript via applescript in acrobat - result "undefined" (From: Rob Stott <email@hidden>)

  • Prev by Date: Re: compare file icons or icon properties
  • Next by Date: Re: Finding and shelling out to a sh script in the same directory as the AppleScript
  • Previous by thread: Re: unable to execute javascript via applescript in acrobat - result "undefined"
  • Next by thread: Re: unable to execute javascript via applescript in acrobat - result "undefined"
  • Index(es):
    • Date
    • Thread