Fixed: GUI Script
Fixed: GUI Script
- Subject: Fixed: GUI Script
- From: Robert Poland <email@hidden>
- Date: Sat, 6 Sep 2003 17:27:43 -0600
>
Hi,
>
>
In my continuing effort to enhance (mess with) the morning operation
>
of my computing i tried to add the following GUI script.
>
>
tell application "Finder"
>
try
>
tell application "System Preferences" to activate
>
tell application "System Events"
>
tell process "System Preferences"
>
click menu item "AutoAPOD" of menu
>
"View" of menu bar 1
>
delay 3
>
tell window 1
>
click the radio button "Fetch Now"
>
delay 3
>
click the radio button "Set As Desktop"
>
delay 3
>
end tell
>
end tell
>
end tell
>
end try
>
end tell
>
>
beep 2 -- script completed
>
>
The "AutoAPOD" window opens immediately but as far as I can tell
>
nothing else happens. I have tried numbers for the button names.
>
>
I do use another GUI script which works fine.
Thanks to Bill Cheeseman <email@hidden> The base problem
was using the script in a "tell application "Finder"" block. How many
times have I heard that before? Minor cleanup made it work.
tell application "System Preferences"
activate
end tell
tell application "System Events"
tell process "System Preferences"
click menu item "AutoApod" of menu "View" of menu bar 1
delay 3
click the button "Fetch Now" of window "AutoAPOD"
delay 3
click the button "Set As Desktop" of window "AutoAPOD"
delay 3
end tell
end tell
Thanks again Bill,
--
Bob Poland - Englewood, CO
http://www.ibrb.org/
_______________________________________________
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.