• 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: weird UI scripting problems.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: weird UI scripting problems.
      • From: Rob Jorgensen <email@hidden>
References: 
 >Re: weird UI scripting problems. (From: Deivy Petrescu <email@hidden>)

  • Prev by Date: AppleScript and Script Editor do not function under 9.2.2 Spanish version
  • Next by Date: Re: weird UI scripting problems.
  • Previous by thread: Re: weird UI scripting problems.
  • Next by thread: Re: weird UI scripting problems.
  • Index(es):
    • Date
    • Thread