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

Can't get static text


  • Subject: Can't get static text
  • From: Chris Waldrip <email@hidden>
  • Date: Sat, 25 Apr 2015 22:38:36 -0400

One of my applescripts doesn’t work under 10.10, but works fine in 10.9.

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

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.”

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?

-Chris
 _______________________________________________
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

  • Follow-Ups:
    • Re: Can't get static text
      • From: Yvan KOENIG <email@hidden>
    • Re: Can't get static text
      • From: Axel Luttgens <email@hidden>
  • Prev by Date: Re: Scripting Terminal ?
  • Next by Date: Re: Can't get static text
  • Previous by thread: Re: Getting Email Content in Outlook 2011
  • Next by thread: Re: Can't get static text
  • Index(es):
    • Date
    • Thread