Re: How to press a button in a Finder window
Re: How to press a button in a Finder window
- Subject: Re: How to press a button in a Finder window
- From: Martin Orpen <email@hidden>
- Date: Sun, 01 Feb 2004 00:15:43 +0000
on 31/1/04 10:15 pm, Doug McNutt at email@hidden wrote:
>
tell application "Finder"
>
activate
>
end tell
>
tell application "System Events"
>
tell process "Finder"
>
tell window "Transfer"
>
tell "AXTOOLbarButton"
>
tell "AXButton"
>
press -- fails here, "variable press is not defined."
>
end tell
>
end tell
>
end tell
>
end tell
>
end tell
>
*******
This works for me:
tell application "System Events"
tell process "Finder"
tell window "Transfer"
click button 1
end tell
end tell
end tell
Regards
--
Martin Orpen
Idea Digital Imaging Ltd -- The Image Specialists
http://www.idea-digital.com
_______________________________________________
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.