Skip to content

Instantly share code, notes, and snippets.

@wileywimberly
Created August 1, 2011 21:27
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wileywimberly/1119049 to your computer and use it in GitHub Desktop.
Save wileywimberly/1119049 to your computer and use it in GitHub Desktop.
Automator Service - Add to Reading List - lax version
--
-- Automator Service - Add to Reading List - lax version
--
-- http://warmfuzzyapps.com/2011/07/add-to-reading-list-lax-version/
-- Wiley Wimberly <wiley@warmfuzzyapps.com>
--
-- The default service that adds links to Safari's Reading List is a
-- bit on the strict side when deciding what constitutes a URL and it
-- doesn't work well for adding shortened URLs from apps like twitter.
-- This version is more tolerant and will prepend http:// if the
-- selected text does not already start with http:// or https://.
--
-- Service receives selected text in any application.
on run {input, parameters}
set theItem to item 1 of input
if theItem starts with "http://" or theItem starts with "https://" then
set theUrl to theItem
else
set theUrl to "http://" & theItem
end if
tell application "Safari"
add reading list item theUrl
end tell
return theUrl
end run
@spalger
Copy link

spalger commented Apr 7, 2015

Turns out OSX supports this natively

screenshot

@ushuz
Copy link

ushuz commented Sep 18, 2020

Well, not anymore

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment