Re: Can't get static text
Re: Can't get static text
- Subject: Re: Can't get static text
- From: Yvan KOENIG <email@hidden>
- Date: Sun, 26 Apr 2015 10:49:12 +0200
Le 26/04/2015 à 04:38, Chris Waldrip < email@hidden> a écrit :
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"
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 _
Before every other change I would add an instruction :
tell application "System Events" tell process "Streambox HD Encoder for Mac OS X"
set frontmost to true
Since the delivery of Yosemite it seems that there is a delay between the activate command and the availability of the process at front. At first I inserted a delay just after the activate command but pushing explicitly the process at front is more efficient.
Yvan KOENIG (VALLAURIS, France) dimanche 26 avril 2015 10:49:07
|
_______________________________________________
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