• 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
Two Acrobat Scripting questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Two Acrobat Scripting questions


  • Subject: Two Acrobat Scripting questions
  • From: Steve Thompson <email@hidden>
  • Date: Wed, 17 Oct 2001 18:33:19 +0100

Sorry if this is a second posting - when I posted the first one, it didn't
seem to appear....

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


  • Prev by Date: Re: Emptying Trash with locked items
  • Next by Date: Re: Dissatisfied with Display Dialog command
  • Previous by thread: Re: Two Acrobat Scripting Questions
  • Next by thread: Re: Two Acrobat Scripting Questions
  • Index(es):
    • Date
    • Thread