Advertisement
Guest User

Untitled

a guest
Jan 21st, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. set tags to text returned of (display dialog "" default answer "")
  2. tell application "Safari" to tell document 1 to set {u, t} to {URL, name}
  3. tell application "Finder"
  4. make new internet location file at POSIX file "/Users/username/Bookmarks" to u with properties {name:t}
  5. set p to POSIX path of (result as alias)
  6. end tell
  7. do shell script "/usr/local/bin/tag -s " & quoted form of tags & " " & quoted form of p
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement