Hello all,
I hope someone out here can help me with a problem i’m having. I’m trying to access the menu bar in Acrobat 8, and nothing happens when i run this script. If anyone has any suggestions please let me know.
tell application “Adobe Acrobat Professional”
activate
tell application “System Events”
tell process “Acrobat”
enabled click
tell menu bar 1
tell menu bar item “Advanced”
tell menu item “Advanced”
click “Advanced”
delay 1
tell menu item “Enable Usage Rights In Adobe Reader…” of menu item “Advanced”
click “Enable Usage Rights In Adobe Reader…”
delay 1
end tell
end tell
end tell
end tell
end tell
end tell
end tell
Well that option in Acrobat is greyed out to me, but the “Manage Trusted Identities.” is not and this works for me
activate application "Adobe Acrobat Professional"
tell application "System Events"
tell process "Acrobat"
click menu item "Manage Trusted Identities..." of menu 1 of menu bar item "Advanced" of menu bar 1
end tell
end tell
So that said I would try this in your scenario
activate application "Adobe Acrobat Professional"
tell application "System Events"
tell process "Acrobat"
click menu item "Enable Usage Rights in Adobe Reader..." of menu 1 of menu bar item "Advanced" of menu bar 1
end tell
end tell
My friend you are a life saver. I appreciate the help!!!
No problem and any time!
Trying this with Acrobat Professional 8…
activate application "Adobe Acrobat Professional"
tell application "System Events"
tell process "Acrobat"
click menu item "Enable Usage Rights in Adobe Reader..." of menu 1 of menu bar item "Advanced" of menu bar 1
end tell
end tell
yields the error: System Events got an error: Can’t get menu bar item “Advanced” of menu bar 1 of process “Acrobat”. Invalid index.
I scoped the menu with UI Browser and tried:
activate application "Adobe Acrobat Professional"
tell application "System Events"
tell process "Acrobat"
tell menu bar 1
tell menu bar item 10
tell menu 1
menu item 5
click
end tell
end tell
end tell
end tell
end tell
which yields the error: System Events got an error: AppleEvent handler failed.
any thoughts?