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

keystroke command


  • Subject: keystroke command
  • From: Robert Poland <email@hidden>
  • Date: Mon, 29 May 2006 11:03:29 -0600

Hi,
In my quest to improve a script to set index labels I have hit a new snag...

tell application "Finder"
activate
if (keys pressed) contains "Option" then beep -- this line breaks the following


-- the following assumes a window is open in the Finder
-- this is used as the command "Select all" doesn't seem to work with a finder window
tell application "System Events"
keystroke "a" using {command down} -- select all
end tell
end tell


Why isn't the keystroke command allowed?

Tia,
--
Bob Poland - Fort Collins, CO
http://www.ibrb.org/
_______________________________________________
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


  • Follow-Ups:
    • Re: keystroke command
      • From: Bill Cheeseman <email@hidden>
    • Re: keystroke command
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: Open URL in default browser?
  • Next by Date: Re: keystroke command
  • Previous by thread: Re: Open URL in default browser?
  • Next by thread: Re: keystroke command
  • Index(es):
    • Date
    • Thread