• 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
Acrobat 6 "do script" problem...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Acrobat 6 "do script" problem...


  • Subject: Acrobat 6 "do script" problem...
  • From: Nigel Smith <email@hidden>
  • Date: Tue, 11 Nov 2003 17:53:22 +0000

Gurus,

Can anyone explain what is going on with this script? Mac OSX Panther and
Acrobat 6 Pro -- if you have Acrobat's JavaScript Debugger window open you
will see the output:

-------------
set f1 to "/"
set f2 to POSIX path of ":" as string

set script1 to "var f = \"" & f1 & "\";console.println(f);"
set script2 to "var f = \"" & f2 & "\";console.println(f);"

tell application "Acrobat 6.0 Professional"
do script script1
do script script2
end tell
-------------

Why does "script1" complete, but "script2" error? This is totally
reproducable OMM -- any file path generated as per line 2 above will error,
the same path typed or pasted in will work.

Failing that, how do you get the front document in Acrobat using JavaScript
rather than AS? This is to do with Ian's XML export problem in his
"Applescripts for Acrobat 6.0" email.

TIA,

Nigel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: weird UI scripting problems.
  • Next by Date: any chance of getting digests #2135 - 2148 from anyone?
  • Previous by thread: UI scripting (Bill) click acrobat pdf window
  • Next by thread: Re: Acrobat 6 "do script" problem...
  • Index(es):
    • Date
    • Thread