• 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: Can't get static text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't get static text


  • Subject: Re: Can't get static text
  • From: Axel Luttgens <email@hidden>
  • Date: Sun, 26 Apr 2015 10:28:12 +0200

> Le 26 avr. 2015 à 04:38, Chris Waldrip a écrit :
>
> One of my applescripts doesn’t work under 10.10, but works fine in 10.9.

Hello Chris,

Which version of 10.10 exactly?


> Here’s the snippet that fails…
> activate application "Encoder"
>
> tell application "System Events"
> 	tell process "Streambox HD Encoder for Mac OS X"
> 		if the value of static text 1 of window 1 contains "Streambox Encoder Activation" then
> 			click button "Activate" of window "Streambox Encoder Activation"
> 		end if
> 	end tell
> end tell

I don’t have that Encoder application here, so I tried similar things against BBEdit.app (third party) and Mail.app (Apple) under Mac OS X 10.10.3; no problems at all.


> And I get the following error.
> "System Events got an error: Can’t get static text 1 of window 1 of process "Streambox HD Encoder for Mac OS X". Invalid index.”

This is the kind of error I get here when trying to access a non existing static text.


> I’ve tried with names and values of elements and I’m using UI Browser to verify I’m getting the right stuff.
>
> Any suggestions?

Could you add this statement:

	UI elements of window 1

after the "tell process" statement and run your snippet in Script Editor with a look at the log?

Axel



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


References: 
 >Can't get static text (From: Chris Waldrip <email@hidden>)

  • Prev by Date: Can't get static text
  • Next by Date: Re: Can't get static text
  • Previous by thread: Can't get static text
  • Next by thread: Re: Can't get static text
  • Index(es):
    • Date
    • Thread