Re: GUI Scripting
Re: GUI Scripting
- Subject: Re: GUI Scripting
- From: Paul Skinner <email@hidden>
- Date: Mon, 20 Jan 2003 15:29:56 -0500
On Monday, January 20, 2003, at 03:19 PM, I wrote:
How about something like this?...
tell application "System Events"
tell process "Dock"
set dockTrashIcon to button "Trash"
end tell
end tell
tell application "System Events" to click the dockTrashIcon
hmm, I think maybe you wanted something more like...
tell application "System Events"
set APDock to process "Dock"
end tell
tell application "System Events"
click button "Trash" of APDock
end tell
--
Paul Skinner
On Monday, January 20, 2003, at 01:42 PM, Philip Aker wrote:
I wrote recently:
If you have the new UI scripting installed you can use something
like:
tell application "System Events"
tell process "Dock"
click button "the name of my window minimized in the Dock"
end tell
end tell
Ya know, since "tell application System Events" seems to be required
for all of the new facilities, it seems to me that it would be easier
if all we had to do was make a call like:
tell UI process "Dock"
click button "so 'n so"
end
where the built-in 'UI process' (or whatever) would save the double
tell (at least superficially). This could also mean that the
underlying mechanism could change to suit low level implementation
things that we might not necessarily be concerned with.
Philip Aker
http://www.aker.ca
_______________________________________________
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.