Acrobat 6 "do script" problem...
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.