• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: UI Browser / AutoAPOD
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UI Browser / AutoAPOD


  • Subject: Re: UI Browser / AutoAPOD
  • From: Johnny AppleScript <email@hidden>
  • Date: Thu, 23 Sep 2004 13:40:16 -0600

Title: Re: UI Browser / AutoAPOD
Does this work any better? You didn’t say what text object you were trying to find (I assume it was the name of the image, but you weren’t clear). -- JA

tell application "System Preferences"
    
activate
   
tell application "System Events"
        
tell process "System Preferences"
            
click menu item "AutoAPOD"
of menu "View" of menu bar 1
           
tell window "AutoAPOD"
                
get UI elements
               
tell tab group 1
                   
get UI elements
                   
set x to static text 1
               
end tell
           end tell
       end tell
   end tell
end
tell
X

On 04/09/23 1:08 PM, "Robert Poland" <email@hidden> wrote:

> Hi,
>
> Apparently the APOD site is getting busier an less responsive.
>
> So I'm trying to change my script to loop for awhile to be sure image
> is downloaded. I haven't got to the loop stage yet as the script
> below fails.
tell application "System Preferences"
    activate
    tell application "System Events"
        tell process "System Preferences"
            click menu item "AutoAPOD" of menu "View" of menu bar 1
            tell window "AutoAPOD"
                get UI elements
                tell tab group 1
                    get UI elements
                    set x to static text 1
                end tell
            end tell
        end tell
    end tell
end tell
x
>
> The interim script fails at the statement "set x to text 1".
>
> Using UI Browser 1.3b11 indicates this is the right place to be.
>
> I have tried many versions of the script but always get an error.
>
> I know that most people don't use AutoAPOD but maybe the error is generic.
>
> Any ideas anyone?
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >UI Browser / AutoAPOD (From: Robert Poland <email@hidden>)

  • Prev by Date: UI Browser / AutoAPOD
  • Next by Date: Re: A couple of problems...
  • Previous by thread: UI Browser / AutoAPOD
  • Next by thread: Re: UI Browser / AutoAPOD
  • Index(es):
    • Date
    • Thread