Scripting Preview Pane in Entourage
Scripting Preview Pane in Entourage
- Subject: Scripting Preview Pane in Entourage
- From: Todd Geist <email@hidden>
- Date: Wed, 23 Mar 2005 09:32:18 -0800
Hello Everyone,
I am trying to script changing Preview Pane to "On Right in MS Entourage. I
think I need to use GUI Scripting to do it. But the script which I got from
apple's GUI scripting page doesn't seem work (see below)
Does anybody have any ideas?
TIA
Todd
The " click menu item submenu_item" line fails when I run it.
do_submenu("Microsoft Entourage", "View", "Preview Pane", "On Right")
on do_submenu(app_name, menu_name, menu_item, submenu_item)
try
-- bring the target application to the front
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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden