• 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: Find whether Safari is active or not
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >What AppleScript Can Do For Me? (From: James Bensley <email@hidden>)
 >Re: What AppleScript Can Do For Me? (From: Philip Aker <email@hidden>)
 >Find whether Safari is active or not (From: "Sutapalli Satyanarayana" <email@hidden>)

  • Prev by Date: Re: Find whether Safari is active or not
  • Next by Date: open for access file
  • Previous by thread: Re: Find whether Safari is active or not
  • Next by thread: Re: Find whether Safari is active or not
  • Index(es):
    • Date
    • Thread