• 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: Need Type Command for OS X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need Type Command for OS X


  • Subject: Re: Need Type Command for OS X
  • From: John Delacour <email@hidden>
  • Date: Sun, 13 Jul 2003 22:32:13 +0100
  • Mac-eudora-version: 6.0a26

At 10:45 am -0700 13/7/03, Howard Sambol wrote:

To all:

I Need Type Command for OS X Applescript. I had an extension for AS in OS 9 but cannot find the equivalent for OS X. This command allows you to use a "type" command inside a script. Thanks!

From "System Events" 1.2.1 dictionary:

keystroke: cause the target process to behave as if keystrokes were entered
keystroke Unicode text -- The keystrokes to be sent.
[with option down/control down/shift down/command down] -- modifiers with which the keystrokes are to be entered

This ought to work:

tell app "System Events" to tell process "xxxx"
set frontmost to true
keystroke "a"
end
_______________________________________________
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: Need Type Command for OS X
      • From: Paul Berkowitz <email@hidden>
References: 
 >Need Type Command for OS X (From: Howard Sambol <email@hidden>)

  • Prev by Date: Re: Scripting Safari's Preferences window
  • Next by Date: Re: Need Type Command for OS X
  • Previous by thread: Need Type Command for OS X
  • Next by thread: Re: Need Type Command for OS X
  • Index(es):
    • Date
    • Thread