Re: Two Acrobat Scripting Questions
Re: Two Acrobat Scripting Questions
- Subject: Re: Two Acrobat Scripting Questions
- From: Bob Anderson <email@hidden>
- Date: Thu, 18 Oct 2001 22:45:44 -0400
The Execute command only works with menu items
listed in the iacref.pdf manual. Look for the
manual on Adobe's web site:
http://partners.adobe.com:80/asn/developer/acrosdk/docs/iacref.pdf
Regards,
Bob
>
Message: 8
>
Date: Wed, 17 Oct 2001 18:18:35 +0100
>
Subject: Two Acrobat Scripting Questions
>
From: Steve Thompson <email@hidden>
>
To: "applescript users lists.apple.com"
>
<email@hidden>
>
>
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