How do you open/select menu bar items??

Morning,

Trying to tell an open application, Activstudio 3 Professional, to select “Page” from the menu bar then select “Next Page”.

This is what I have so far, but nothing happens when I run the script. What am I doing wrong??

Thank you :slight_smile:
Adam

tell application “System Events”
tell process “Activstudio 3 Professional”
tell menu bar 1
tell menu bar item “Page”
tell menu “Page”
click menu item “Next Page”
end tell
end tell
end tell
end tell
end tell

Hi,

accessing menu items works only, while the targeted application is frontmost
you have at least to activate the target application


activate application "Activstudio 3 Professional"
tell application "System Events"
.