Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. -- get Safari all tabs urls and titles
  2. -- osascript safari.applescript 2>&1 | less
  3. tell application "Safari"
  4. set tabsList to front window's tabs as list --gets all open tabs
  5. repeat with currTab in tabsList
  6. set currName to currTab's name
  7. set currURL to currTab's URL
  8. set out to currURL & " ==> " & currName
  9. log out
  10. end repeat
  11. end tell
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement