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

Re: keystroke command


  • Subject: Re: keystroke command
  • From: Bill Cheeseman <email@hidden>
  • Date: Mon, 29 May 2006 14:44:38 -0400
  • Thread-topic: keystroke command

on 2006-05-29 1:40 PM, Robert Poland at email@hidden wrote:

> For me, your suggestion selects all of the DESKTOP items, even if I
> do as follows;
>
> activate application "Finder"
> tell application "System Events"
> tell process "Finder" to tell window 1
> keystroke "a" using {command down} -- select all
> end tell
> end tell

I think you have to have a window open and frontmost for it to select all
the items in the front window.

The 'keystroke' and 'keycode' commands should be addressed to the
application. They act on whatever UI element happens to have keyboard focus
at the moment, except of course that key combinations that the application
recognizes as keyboard shortcuts (typically, with command down) are
interpreted as keyboard shortcuts.

--

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

References: 
 >Re: keystroke command (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: keystroke command
  • Next by Date: Re: keystroke command
  • Previous by thread: Re: keystroke command
  • Next by thread: Re: keystroke command
  • Index(es):
    • Date
    • Thread