Created
October 14, 2011 11:00
-
-
Save tmiz/1286815 to your computer and use it in GitHub Desktop.
copy url and title from Safari
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Safari" | |
if not (exists front document) then return | |
set _title to name of front document | |
set _url to URL of front document | |
end tell | |
set the clipboard to _url & return & _title & return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment