set linkText to "%fill:text%"
try
tell application "Safari"
set currentURL to URL of current tab of front window
end tell
set link to "[" & linkText & "](" & currentURL & ") "
return link
on error
"None"
end try
Created
August 30, 2012 04:35
-
-
Save kristianfreeman/3522360 to your computer and use it in GitHub Desktop.
Applescript TE snippet for automation of Safari link pulling
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment