targumanu Posted June 15, 2014 Share Posted June 15, 2014 (edited) This workflow allows you to view, open and add Safari reading list items. Features: View all your reading list items (keyword: RL). Search for specific items: Entering "rl apple iphone" will return reading list items whose page title or URL contains both "apple" and "iphone". View (and search) only unread reading list items (keyword: RLU). Add new items to your reading list (using keyword RLADD or hotkeys). Open all unread items (keyword: RLALL). Direct download Packal page This workflow uses the awesome Alfred Objective-C framework. Updates: v1.1: Option to view only unread Reading List items (default keyword: RLU). v1.2: Option to add new items to your reading list (keyword: RLADD). If the currently active app is a browser (Safari, Webkit, Chrome, Canary and Chromium are currently supported), you can just press Enter to add the URL of its active tab. You can also add URL's by typing or pasting. The workflow uses AppleScript to add new reading list items, so it requires Safari to be running. However, if Safari wasn't running, the workflow will quit it after it's done. (If you had no open windows in Safari, you won't even notice anything). Additionally, the workflow checks if the URL you are trying to add is valid by trying to download the <head> element of the corresponding page. So if you are disconnected from the Internet, or the page you are trying to add is unreachable, the workflow will consider the URL as invalid and won't add it. To make it add that URL without checking it for validity, use the modifier key (⌃). v1.3: Option to open all reading list items (keyword: RLALL). v1.4: The open all feature has been modified to open only unread items. (You can still open all your reading list items (including the read ones) by pressing Option.) v1.4.1: Fixed a typo v1.4.2: Fixed yet another typo Edited April 20, 2017 by targumanu vdesabou, Yuri, Jono and 4 others 7 Link to comment
targumanu Posted June 16, 2014 Author Share Posted June 16, 2014 (edited) Update (v1.1): Added an option to view only unread Reading List items (default keyword: rlu). Please, re-download! Edited June 16, 2014 by targumanu Link to comment
vitor Posted June 18, 2014 Share Posted June 18, 2014 This looks very good. However, I have two feature requests, both of which I envision working without opening Safari (is that even doable?). Add an option to delete the item from Safari’s Reading List, immediately upon activating it. The best way to go about activating it would likely be with Alfred’s Action Modifiers. Add an option to add the current browser’s (whatever it is) frontmost tab’s url to Safari’s Reading List. I’ve posted the needed AppleScript in another thread and would, naturally, be available to help with this if needed. Link to comment
targumanu Posted June 20, 2014 Author Share Posted June 20, 2014 This looks very good. However, I have two feature requests, both of which I envision working without opening Safari (is that even doable?). Add an option to delete the item from Safari’s Reading List, immediately upon activating it. The best way to go about activating it would likely be with Alfred’s Action Modifiers. Add an option to add the current browser’s (whatever it is) frontmost tab’s url to Safari’s Reading List. I’ve posted the needed AppleScript in another thread and would, naturally, be available to help with this if needed. Unfortunately, there is currently no native API for accessing Safari's reading list, so my workflow gets reading list contents by reading Safari's Bookmarks.plist. And here lies the problem with your first request: I tried to implement the deleting feature, however, changes made to Bookmarks.plist directly don't sync to iCloud, so even if the deleted article disappears from the local reading list, it is still present on your other devices. So I decided to exclude this feature. As for adding articles to your reading list, I will see what I can do. However, due to the lack of a native API, it will most probably involve Scripting Bridge or AppleScript (yuck!), which will cause Safari to launch every time you add a new article. Link to comment
targumanu Posted June 21, 2014 Author Share Posted June 21, 2014 (edited) Workflow updated to version 1.2 (new option to add new items to your reading list). See the original post for details. Edited June 21, 2014 by targumanu Link to comment
drewkerr Posted June 28, 2014 Share Posted June 28, 2014 Great workflow - thanks! Would it be possible to have a result along the lines of 'Read all 64 unread items in the list'? This gives a way to open all items but also can see how many items there are at a glance. If not the default result, then perhaps at the end of the list? Link to comment
targumanu Posted June 28, 2014 Author Share Posted June 28, 2014 Great workflow - thanks! Would it be possible to have a result along the lines of 'Read all 64 unread items in the list'? This gives a way to open all items but also can see how many items there are at a glance. If not the default result, then perhaps at the end of the list? Done. (See the original post.) Link to comment
drewkerr Posted June 28, 2014 Share Posted June 28, 2014 Done. (See the original post.) Awesome - you're quick! Not to seem ungrateful, but this is all items, right? Is it possible to just open the unread items? Link to comment
targumanu Posted June 29, 2014 Author Share Posted June 29, 2014 Updated to version 1.4. See the original post. Link to comment
drewkerr Posted June 30, 2014 Share Posted June 30, 2014 Updated to version 1.4. See the original post. Sweet! Works like a treat - thanks! Link to comment
targumanu Posted August 24, 2014 Author Share Posted August 24, 2014 (edited) Found a typo. Oops. The direct download version was outdated. Please, re-download. Edited August 24, 2014 by targumanu Link to comment
David Posted September 8, 2014 Share Posted September 8, 2014 Hi, thanks cool workflow. Is the source of the included "ReadingListSearch" executable available on Github (or something equal)? Link to comment
mmcduffie Posted September 26, 2014 Share Posted September 26, 2014 Excellent workflow. Thank you. Would it be possible to add a delete function for items? Link to comment
targumanu Posted September 26, 2014 Author Share Posted September 26, 2014 Excellent workflow. Thank you. Would it be possible to add a delete function for items? Unfortunately, Apple doesn't offer a native Reading List API, so it's not possible. Link to comment
mmcduffie Posted September 26, 2014 Share Posted September 26, 2014 Thanks for the fast response. I think I use all your workflows now, they're really well made. Someone else asked above but are you considering releasing the source of the embedded binary? I enjoy learning how these are made. It's educational to see a well designed workflow. Link to comment
xilopaint Posted March 30, 2017 Share Posted March 30, 2017 On 8/24/2014 at 3:15 PM, targumanu said: Oops. The direct download version was outdated. Please, re-download. I also have the outdated version with the typo. Where I can download the latest version? Link to comment
targumanu Posted April 17, 2017 Author Share Posted April 17, 2017 (edited) Updated the original post to fix the preview image and direct download link. On 3/30/2017 at 1:19 PM, xilopaint said: I also have the outdated version with the typo. Where I can download the latest version? Both the direct download and Packal versions are the same (v 1.4.1). You can download any one of them and reinstall/update the workflow. Edited April 17, 2017 by targumanu Link to comment
nikivi Posted April 17, 2017 Share Posted April 17, 2017 Is it possible to add an action to 'open link from reading list and remove link from reading list'? Link to comment
targumanu Posted April 17, 2017 Author Share Posted April 17, 2017 (edited) 3 minutes ago, nikivi said: Is it possible to add an action to 'open link from reading list and remove link from reading list'? Unfortunately no. Apple's API doesn't allow removing Reading List items, and I couldn't find a way to implement it using GUI scripting. (If somebody could point me to a working AppleScript for removing Reading List items, I'd be happy to integrate it in my workflow.) Edited April 17, 2017 by targumanu Link to comment
xilopaint Posted April 19, 2017 Share Posted April 19, 2017 On 4/17/2017 at 7:50 AM, targumanu said: Updated the original post to fix the preview image and direct download link. Both the direct download and Packal versions are the same (v 1.4.1). You can download any one of them and reinstall/update the workflow. You missed another typo in rladd: eneter instead of enter. Link to comment
targumanu Posted April 20, 2017 Author Share Posted April 20, 2017 10 hours ago, xilopaint said: You missed another typo in rladd: eneter instead of enter. Fixed. Hopefully, this was the last one. Please, re-download. xilopaint 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now