hi there,
I’m trying to do some default settings for InDesign and doing just that by using Apple’ GUI Scripting.
Don’t ask me why it’s a long, long, long story ![]()
For some, to me unknown, reason this isn’t working…
my do_submenu("Adobe InDesign CS2", "View", "Screen Mode", "Preview")
on do_submenu(app_name, menu_name, menu_item, submenu_item)
try
tell application app_name
activate
end tell
tell application "System Events"
tell process app_name
tell menu bar 1
tell menu bar item menu_name
tell menu menu_name
tell menu item menu_item
tell menu menu_item
click menu item submenu_item
end tell
end tell
end tell
end tell
end tell
end tell
end tell
return true
on error error_message
return false
end try
end do_submenu
What i’m doing wrong here…?
Somebody? Help me…
TIA,
Steven