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 16:07:14 +0100
- Mac-eudora-version: 6.0a15
At 10:02 am -0400 14/4/03, Rob Jorgensen wrote:
Same result - it works from Script Debugger but not from the
application's script menu. Error: System Events got an error:
NSReceiverEvaluationScriptError: 4
I think we need Chris N. to give us the solution.
Yup.
If I put a handler in my stay-open "eunotice" applet like this
on getMenus()
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_
end getMenus
and run from the editor
tell app "eunotice" to getMenus
I have no problems. But if I call the handler from within Eudora, I
get the same problems as before.
The reason I never use Script Menu.menu is because it forces
everything to run within System Events and is very slow. Leonard
Rosenthol fixed this issue in OSA Menu years ago. It's a pity we
have to go right back to the dark ages. It;s a pity I shold also be
recommending the 12+ year old Scriptable Text Editor to a newbie
because TextEdit is virtually useless as a scriptable editor, having
most essential features unscriptable.
JD
_______________________________________________
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.