public
Last active

In Safari, this applescript copies the title and URL of the current tab to the clipboard.

  • Download Gist
copyURLPlusSafari.scpt
AppleScript
1 2 3 4 5 6 7 8 9 10 11
-- In Safari, this copies the Title and URL of the current tab to the clipboard.
-- Save the script in ~/Library/Scripts/Applications/Safari
-- Using QuickSilver, I assign a trigger to this script using the hotkey ⌥-C (option c), with the scope of the trigger limited to Safari.
-- Inspired by CopyURL + (http://copyurlplus.mozdev.org/)
-- Christopher R. Murphy
 
tell application "Safari"
set theURL to URL of front document
set theTitle to name of front document
set the clipboard to theTitle & return & theURL as string
end tell

You saved Zeokat day, very usefull. Thanks.

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.