Re: 10.3.9 Broke something
Re: 10.3.9 Broke something
- Subject: Re: 10.3.9 Broke something
- From: Bill Cheeseman <email@hidden>
- Date: Fri, 22 Apr 2005 06:45:42 -0400
on 2005-04-22 3:30 AM, Lee Noble at email@hidden wrote:
> I've used WireTap to record a WMP stream every weekday for over a year. For
> the last three days the script has failed while selecting the save folder.
> This part of the script uses UI Scripting as there is no alternative. Here's
> the script.
You didn't mark which line of the script is failing. I'll see if I can
figure it out over the weekend.
In general, people have found that it is better to use 'keystroke "your text
here"' to fill in text fields. The 'set value of text field 1 to "your text
here"' approach fails to hold in some applications.
When using the 'keystroke' command in this fashion, you do have to ensure
that the desired text field has keyboard focus, because the 'keystroke'
command is actually sent to the target application as a whole and it goes
wherever the target application would send actual manual keystrokes.
One way to give the text field keyboard focus is this:
set value of attribute "AXFocused" of text field 1 to true
In some apps, this works:
set focused of text field 1 to true
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
PreFab Software - http://www.prefab.com/scripting.html
The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
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