Re: Keystroking Keyboard Shurtcuts
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