Skip to content

Instantly share code, notes, and snippets.

@42point
42point / copyURLPlusSafari.scpt
Last active October 28, 2017 22:01 — forked from chmurph2/copyURLPlusSafari.scpt
In Safari, this applescript copies the title and URL of the current tab to the clipboard in Markdown format
-- In Safari, this copies the Title and URL of the current tab to the clipboard.
-- Save the script in ~/Library/Scripts/Applications/Safari
-- Using Alfred, 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/)
-- Inspired by Christopher R. Murphy
-- Modified by Lexx
tell application "Safari"
set theURL to URL of front document
set theTitle to name of front document