SHARE
TWEET

Untitled

a guest Jun 25th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. tell application "Safari"
  2.     repeat with site in sitelist
  3.         repeat with w from 1 to number of windows
  4.             set tabList to (every tab of window w whose URL contains site)
  5.         end repeat
  6.     end repeat
  7. end tell
  8. tell application "Chrome"
  9.     repeat with site in sitelist
  10.         repeat with w from 1 to number of windows
  11.             set tabList to (every tab of window w whose URL contains site)
  12.         end repeat
  13.     end repeat
  14. end tell
  15.      
  16. set browserlist to {"Safari", "Chrome"}
  17.  
  18. repeat with browser in browserlist
  19.     tell application browser
  20.         repeat with site in sitelist
  21.             repeat with w from 1 to number of windows
  22.                 set tabList to (every tab of window w whose URL contains site)
  23.             end repeat
  24.         end repeat
  25.     end tell
  26. end repeat
  27.      
  28. set tabList to (every tab of window w whose URL contains site)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top