• 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: trying to use keystroke
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: trying to use keystroke


  • Subject: Re: trying to use keystroke
  • From: Bill Cheeseman <email@hidden>
  • Date: Wed, 29 Oct 2003 19:36:29 -0500

on 03-10-29 3:47 PM, nick weldin at email@hidden wrote:

> I'm trying to use the keystroke command to send the delete key, btu
> can't get it to work.
> I can get it to send characters, and characters with modifiers, but
> the syntax for types of keys is eluding me.
>
> This script does not give a syntax error, but doesn't seem to do
> anything when it runs.
>
> tell application "System Events"
> get properties
> tell process "TextEdit"
> set frontmost to true
> end tell
> keystroke delete key
>
> end tell

Try 'keystroke (ASCII character 8)', courtesy of PreFab UI Browser.

--

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.

References: 
 >trying to use keystroke (From: nick weldin <email@hidden>)

  • Prev by Date: Re: Panther/Terminal/System events
  • Next by Date: Re: Panther: AppleScript 1.9.2 Release Notes
  • Previous by thread: Re: trying to use keystroke
  • Next by thread: Re: trying to use keystroke
  • Index(es):
    • Date
    • Thread