Re: UI Scripting deep menus
Re: UI Scripting deep menus
- Subject: Re: UI Scripting deep menus
- From: Rob Jorgensen <email@hidden>
- Date: Mon, 14 Apr 2003 08:15:58 -0400
At 10:58 AM +0100 4/14/03, John Delacour wrote:
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_}
Works fine from Script Debugger too. It errors even if you cut the
script down to just:
tell application "System Events"
end tell
I think it's Eudora's script menu that's failing. The script runs
from the system's script menu, right up to the point where one tries
to make a selection in the dialog. :/
--
Rob Jorgensen
Ohio, USA
_______________________________________________
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.