Two Acrobat Scripting Questions
Two Acrobat Scripting Questions
- Subject: Two Acrobat Scripting Questions
- From: Steve Thompson <email@hidden>
- Date: Wed, 17 Oct 2001 18:18:35 +0100
In the Acrobat 5 dictionary, there is a command "Execute reference - the
menu item to execute"
However, this script
on open these_items
repeat with i from 1 to the count of these_items
set this_item to item i of these_items
set the item_info to info for this_item
if (folder of the item_info is false) and ,
(alias of the item_info is false) and ,
(the file type of the item_info contains "PDF") then
process_item(this_item)
end if
end repeat
end open
on process_item(this_item)
tell application "Acrobat 5.0"
activate
open this_item
execute "Rotate Clockwise"
save document this_item to file (this_item+".eps") using conversion 5
end tell
end process_item
Produces the message "Rotate Clockwise doesn't understand the execute
message". Anyone tell me the correct way to refer to a menu item in Acrobat
or where I might find it?
Also, in the command Using Conversion, which conversion is "PostScript
File"? Every number I've tried (1- 8 so far) seems to save as anything but.
Any clues?
The whole exercise is - Open a PDF, rotate it through 90 degrees clockwise,
export it as a PostScript file. So simple, yet so painful :-)
TIA
Steve
_____________________________________________________________________
This message has been checked for all known viruses by the
MessageLabs Virus Scanning Service. For further information visit
http://www.messagelabs.com/stats.asp