Re: Find whether Safari is active or not
Re: Find whether Safari is active or not
- Subject: Re: Find whether Safari is active or not
- From: James Bensley <email@hidden>
- Date: Thu, 16 Jul 2009 12:22:24 +0100
I don't know the actual commands but wouldn't you be looking for
(pseudo code):
tell application "Safari" to activate #active safari
tell application "System Events" to keystroke "T" using {command
down} #this will open a new tab or if no safari window is open it
should open one
~insert goto url code here (I don't know)
end tell
end tell
I don't know what I'm doing but I think it should work!
James ;)
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GIT/MU/U dpu s: a--> C++>$ U+> L++> B-> P+> E?> W+++>$ N K W++ O M++>$ V-
PS+++ PE++ Y+ PGP t 5 X+ R- tv+ b+> DI D+++ G+ e(+++++) h--(++) r++ z++
------END GEEK CODE BLOCK------
_______________________________________________
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