The next step will be to filter the actual text out of the web page which will be a little tougher and the main topic of Part 2. You can also set maxNum to -1 if you want to pass all items without removing the AppleScript action. You can change maxNum to fit your taste and/or needs. This will only pass through the first maxNum of items passed into it, regardless of type. Text Extraction - Fiery Feeds can automatically extract the full article text or display the website instead of the truncated article text. Set output to items 1 through maxNum of input Custom URL Sharing - Fiery also supports sharing to other apps and websites using URL schemes that you can create yourself or install from the action directory and customisable email templates. enter '-1' or remove this action entirely to get all urls filters all but the first maxNum items from the articles, change as appropriate Set readabilityScript to "javascript:(function() add a new empty “Run AppleScript” action at the end of the workflow and enter the following code:.remove the last action “New Safari Documents” from the workflow 2.duplicate the Workflow file and name the copy: Speak Instapaper Articles to iTunes.That saves us from having to recreate the logic of the Readabilty scriptlet in AppleScript.ĭo the following with the workflow we built in Part 1: Since Safari’s AppleScript dictionary allows us to execute arbitrary JavaScript against a webpage, we can use that to extract the relevant text from the article. Unfortunately, the “Reader” functionality in Safari is not scriptable.īut before Safari had “Reader” there was the Readability javascriptlet from Arclab90 which does very much the same thing. Create AccountSign In How to Save Browser Email IFTTT Add the Bookmarklet to Your iOS Web Browser Tap this linkand follow the instructions. The latest version of Safari 1 has a functionality called “Reader,” which removes all this clutter and allows the user to focus on just the text. If you look into the library of Automator actions there is one with the promising name “Get Text from Webpage.” However this will extract all the text, usually including all the menus, ads and all the other detritus that clutters webpages these days. But we stopped short of the goal, to convert the text of the articles to speech files. In the last part we built a useful workflow that would open a given number of unread article from your Instapaper feed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |