Re: weird UI scripting problems.
Re: weird UI scripting problems.
- Subject: Re: weird UI scripting problems.
- From: Bill Cheeseman <email@hidden>
- Date: Tue, 11 Nov 2003 06:43:06 -0500
on 2003-11-10 8:05 PM, Deivy Petrescu at email@hidden wrote:
>
On Nov 10, 2003, at 3:23 PM, Deivy Petrescu wrote:
>
>
> The first of the weird problems i am facing with UI scripting is
>
> numbers... I can not script a
>
> keystroke a (where a is a number)
>
> So keystroke 1 or keystroke 6 or keystroke 9 produces nothing.
>
> Can anybody confirm this ?
>
>
>
>
follow up:
>
>
I can script keystroke "4" or whatever number, but not on the iBook,
>
only on the G4. Both running Panther.
>
Does this happens with all laptops? Can anybody else check please?
This works on my original PowerBook G4 (Titanium):
tell application "TextEdit" to activate
tell application "System Events"
tell process "TextEdit"
keystroke "4"
end tell
end tell
All keystroke commands should take a character in quotation marks, as far as
I know.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.