Re: UI Scripting deep menus
Re: UI Scripting deep menus
- Subject: Re: UI Scripting deep menus
- From: John Delacour <email@hidden>
- Date: Mon, 14 Apr 2003 10:58:41 +0100
- Mac-eudora-version: 6.0a15
At 12:23 am -0400 14/4/03, Rob Jorgensen wrote:
I don't have additional character sets to test with but this works
to change a message's label. It should be close.
--
tell application "Eudora" to activate
tell application "System Events"
tell application process "Eudora"
tell menu item "Hot" of menu "Label" of menu item "Label" of menu
"Change" of menu item "Change" of menu "Message" of menu bar 1 to
click
end tell
end tell
Great! That works fine.
Now here's a puzzle. This script works fine from Script Editor and
Smile, but if you try running it from the scripts menu in Eudora, it
throws an error. There's sme problem with the namespace -- probably
'name' -- but I can't get round it at the moment.
Try it and see if you can find a solution. I've tried all sorts of
permutations.
tell application "System Events" to tell application process "Eudora"
set frontmost to true
set itemsref_ to a reference to menu items of menu "Label" of menu
item "Label" of menu "Change" of menu item "Change" of menu "Message"
of menu bar 1
end tell -- end of SysEv block
--
activate
set itemlist_ to contents of itemsref_
set namelist_ to get name of itemsref_
set choice_ to choose from list namelist_
return {choice_, return, itemlist_, namelist_}
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.