title: AppleScript : find open tab in safari by name and open it
body: <p>I'm looking for a way to find if a webpage its open from all the opened tab, and if so, focus this tab.</p>
  
  <p>I tried this code but obviously this is not working at all.</p>
  
  <pre><code>set closeURLs to {"http://www.yahoo.com"}
  
  repeat with theURL in closeURLs
      tell application "Safari" to open (every tab of every window whose URL contains (contents of theURL))
  end repeat
  </code></pre>
  
  <p>UPDATE : I find it : <a href="http://protips.maxmasnick.com/applescript-to-find-fastmail-tabs-in-safari" rel="nofollow">http://protips.maxmasnick.com/applescript-to-find-fastmail-tabs-in-safari</a></p>