Re: UI Scripting flaking out on simple tasks
Re: UI Scripting flaking out on simple tasks
- Subject: Re: UI Scripting flaking out on simple tasks
- From: Craig Sutherland <email@hidden>
- Date: Tue, 30 Dec 2003 18:30:43 -0600
Henrik
On Dec 30, 2003, at 6:10 PM, Henrik Boes wrote:
I am trying (still) to get a handle on GUI scripting and am finding
myself moving backwards, not forwards. Below is the simple script I'm
testing:
tell application "TextEdit" to activate
tell application "System Events"
if UI elements enabled then
click menu item "New" of menu "File" of menu bar item "File" of menu
bar 1 of application "TextEdit"
try:
click menu item "New" of menu "File" of menu bar item "File" of menu
bar 1 of process "TextEdit"
You want to send the click to a process not an application.
HTH
Craig
_______________________________________________
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.