• 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: Keystroking Keyboard Shurtcuts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Keystroking Keyboard Shurtcuts


  • Subject: Re: Keystroking Keyboard Shurtcuts
  • From: Matthew Smith <email@hidden>
  • Date: Sat, 16 Aug 2008 15:06:37 +1000
  • Thread-topic: Keystroking Keyboard Shurtcuts

Title: Re: Keystroking Keyboard Shurtcuts
on 16/08/2008 14:52 , Vance at email@hidden wrote:

I've looked around and was told that it could be done like this

tell application "Safari"
activate
end tell

tell application "System Events"
keystroke "t" with command down
end tell


But that doesn't work and it gives me this error

Expected “into”, variable name, class name, other parameter name or property but found application constant or consideration.


Let’s try that again. It doesn’t pay to be lying on the floor and using one hand on the computer.

The “with” should be “using”.

tell application "Safari"
   activate
end tell

tell application "System Events"
   keystroke "t" using command down
end tell

--
Matthew Smith
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Keystroking Keyboard Shurtcuts
      • From: Vance <email@hidden>
References: 
 >Keystroking Keyboard Shurtcuts (From: Vance <email@hidden>)

  • Prev by Date: Re: Keystroking Keyboard Shurtcuts
  • Next by Date: Re: Keystroking Keyboard Shurtcuts
  • Previous by thread: Re: Keystroking Keyboard Shurtcuts
  • Next by thread: Re: Keystroking Keyboard Shurtcuts
  • Index(es):
    • Date
    • Thread