Novice AppleScript question...

Hi,

I am brand-new to learning AppleScript. How do you code AppleScript to use submenus? I am trying to script Adobe Acrobat - specifically a menu command that has a submenu (the UI menu would be File->Create PDF, and the Create PDF has a submenu).How do I specify which of the submenus I want? The AppleScript dictionary for Acrobat has a property “has submenu” under the “menu item” class. I’ve only gotten as far as “execute menu item”, but I don’t know how to specify the syntax of a menu item with a submenu.

Any help would be appreciated.

Here’s an example that should give you an idea

tell application “Acrobat 6.0 Professional” to activate
tell application “System Events”
tell application process “Acrobat”
click menu item “Review Tracker” of menu “View” of menu bar item “View” of menu bar 1
end tell
end tell

it’s definitely worthwhile having a look at this too:

http://www.prefab.com/uibrowser/