This Week's Sponsor:

Direct Mail

Professional Email Marketing Built Just for Mac Users


Posts tagged with "automation"

Send Selected OmniFocus Task to Plain Text File

I save a lot of stuff into OmniFocus: bits of text, URLs, emails. I used to save favorite tweets into it, too. The app’s Quick Entry panel is so easy to invoke and so well-integrated with core parts of OS X  that, most of the time, I find myself clipping information that shouldn’t be into OmniFocus at all. However, I also find the process of manually going through that information beneficial to my workflow: it allows me to mentally and practically separate actionable items (tasks) from things to read and things to write (Instapaper material and my future articles, essentially).

I have created a simple AppleScript to send the selected OmniFocus task to a text file. The script is meant for how I use OmniFocus; hopefully you’ll find it useful as well. Feel free to modify it.

Typically, when I decide to go through my OmniFocus inbox, I find a lot of tasks that are actually ideas of things I want to do or write. Ideas don’t go into OmniFocus. Until those ideas become actionable items, I send them to a text file so I can elaborate on them and see if they can evolve. Like I said, most of the time those ideas are for new articles.

I store all my notes in a single Apps/ directory on my Dropbox. Based off the same AppleScript, I have created a Keyboard Maestro macro to create a new text file for each processed task; this is for ideas I know will turn out to be single, standalone articles. For ideas I’m not so sure about, I prefer to append them as text to an Ideas.txt file I keep in Dropbox as an “everything bucket” for inspiration. Read more


SearchLink: Markdown Links Without The Browser

I don’t know how Brett Terpstra finds the time to do everything he does, but I do know I enjoy the results.

Brett’s latest effort is SearchLink, a system Service to generate Markdown links automatically for a variety of web services. In Brett’s words:

SearchLink is a System Service for OS X that handles searching multiple sources and automatically generating Markdown links for text. It allows you to just write, marking things to link as you go. When you’re done, you run it on the document and — if your queries were good — have your links generated automatically without ever opening a browser.

Essentially, SearchLink is a Ruby script that, in the background, generates valid Markdown for inline links inserted in plain text. These can be links pointing to a Google search, a Mac App Store or iTunes search, last.fm, Wikipedia, and more. Instead of having to switch to the browser when you’re writing, you can just write using SearchLink’s simple syntax. Once you’re done, run the Service, and SearchLink will contact web APIs to transform your text into the first/best result for your query, formatted in Markdown. Read more


Drafts 2.2 Adds Custom Email Actions

Agile Tortoise’s Drafts for iPhone and iPad is one of my most-used apps for iOS. It sits on the Home screen of both my devices, and I rely on it to send text to a variety of apps and services. With a combination of support for URL schemes and external APIs, Drafts has become a fantastic way to get text saved somewhere else quickly. Plus, we’ve been following Drafts here at MacStories for a while now, and the app underwent quite the evolution recently.

After the major 2.0 update (our review here), I have been looking forward to version 2.2. Released today (app is version 1.2 on the iPad), Drafts now includes new actions for Nebulous Notes (a personal favorite of mine), Netbot, Notefile, and Pastebot. It’s also got a new “Use First Line as Title” setting and advanced options for actions.

More importantly, Drafts 2.2 comes with support for custom email actions, which is the reason I’ve been using Captio for the past two years. It’s with a bit of sadness that I drop Captio, but the app hasn’t even been updated for the iPhone 5 yet, and Drafts does so much more. Custom email actions allow you to send emails to predefined addresses using either your own email accounts, or a background service provided by Agile Tortoise. Read more


Faster Markdown Editing with Nebulous Notes Macros

I have written about Nebulous Notes before. Back in August, I posted an overview of my workflow with the app, plain text, and Markdown:

Combining Nebulous’ support for text substitution and cursor position macros has enabled me to achieve a powerful workflow when it comes to writing in Markdown. For instance, I can select words I want to turn into inline links, and have the app automatically wrap them between square brackets, and paste the contents of my clipboard (the link) to the right. To copy Markdown-ready links, I use my own bookmarklet. Or if I want to create a list, I can hit a button that inserts an asterisk and a space. Or again, if I need to create a text file with a format that OmniOutliner recognizes correctly, I can indent items with Nebulous’ $tab and $cursor macros.

Since then, a major 6.0 update to the app has been released, which, in my opinion, deserves another look. For the occasion, I’ve put together a few videos showing how I use the macros I have created for easier and quicker Markdown (more specifically, MultiMarkdown) formatting. The videos were recorded on a Mac using QuickTime capturing an AirPlay Mirroring session through Reflection. I have embedded them here using the video tag supported by most modern browsers (video files are encoded in MPEG-4). For Firefox users, there’s a fallback to Theora .ogv files (converted using ffmpeg2theora). I will also make my macros available for download at the end of this post. Read more


Change Text Case With AppleScript

Last night, I was looking for a quick way to change a string of text from lowercase to Title Case, which is the format I use for headlines here at MacStories. Normally, I would recommend installing WordService by DEVONtechnologies, but that’s a system Service, and I don’t seem to be able to install those without logging out and back in (I didn’t want to log out).

As I’ve come to learn lately, when you’re looking for ways to automate your Mac, the solution has likely already been posted on MacScripter. Among all the possible combinations of AppleScript to change text to a particular case format, I like this one by forum member “kai”. Essentially, the script takes the someText property and transforms its text items through changeCase to four possible options: upper, lower, title, and sentence.

To customize the script to my needs, I set someText to get the contents of my clipboard, change the case, then turn the result over to the clipboard again. In this way, I can select any text, copy it (so the original version is available in ClipMenu’s history), change the case, and paste back. To run AppleScripts with a keyboard shortcut, I use either Keyboard Maestro or Alfred.

Check out the AppleScript here.


Send Favorite Tweets To OmniFocus’ Inbox

In my daily “social networking workflow”, I use the “favorite” feature of Twitter as a todo list of sorts. I couldn’t find a way to add favorites to OmniFocus without leveraging email as a bridge, so I built a solution myself.

Using IFTTT, a single line of bash, Hazel, and AppleScript, I created a simple way to turn a favorite tweet into an OmniFocus task in the application’s inbox, ready for future processing. As an extra, I have also created a more “advanced” version that adds Automator to the mix to only extract URLs from favorite tweets. Read more


Turn URLs and Webpages Into PDFs In Your Dropbox

I stumble across a lot of interesting webpages on a daily basis. Sometimes it’s a video I want to watch later; sometimes it’s an article I don’t have time to read right away. Other times, I find a webpage that I want to keep around for future reference. For me, there’s a difference between articles to read later and reference material: whereas a new item added to Instapaper has a short life span in terms of attention (read, share, archive), a webpage I want to keep around forever needs to be turned into a document I can read anywhere, highlight, annotate, and carry around between platforms and devices. For that, I like PDFs.

I keep a “PDFs” folder in my Dropbox that contains all the documents I check upon regularly for work and personal purposes. They can be eBooks, tutorials, or guidelines from Apple that are essential to my writing online. Thanks to the increasing support for cloud services in apps like PDF Expert, GoodReader, and iAnnotate, I can keep a single copy of a PDF in my Dropbox, use the app I want to annotate the document with, and forget about duplicates thanks to sync. Furthermore, I’m fairly sure that, due to their popularity, PDFs will still be readable and supported 20 years from now, so I don’t have to worry about data preservation and file formats.

Lately, I have become obsessed with turning longer articles I find on the Internet also into PDFs for long-term archival. For as much as I like Instapaper, I can’t be sure that the service will be around in the next decades, and I don’t want my archive of longform and quality content to be lost in the cloud. So I have come up with a way to combine Instapaper with the benefit of PDFs, Dropbox, and automation to generate documents off any link or webpage, from any device, within seconds.

(Disclaimer: what follows is an explanation of a hack I created for personal use. It uses publicly available tools and apps to fill a personal need. You shouldn’t create PDFs off websites and redistribute them – you should support the sites you read instead).

In short, I use the Instapaper Text bookmarklet to fetch a webpage’s text and images (while preserving hyperlinks and great typography) and I convert the resulting page to PDF using wkpdf. Created by Christian Plessl, wkpdf is a command line tool that uses WebKit and RubyCocoa for rendering HTML content to PDF. Since wkpdf uses WebKit’s HTML rendering, it can generate good-looking PDFs that maintain most CSS2 and CSS3 stylings and properties. I have tried another command line tool for file conversion, Pandoc, but I like wkpdf better for straight HTML to PDF conversion. Read more


Plain Text, Macros, Markdown, and Nebulous Notes

Nebulous Notes

Nebulous Notes

If there’s a category of iOS apps I’m always interested in checking out, that would be text editors. I write for a living, and while a better app won’t make me a better writer, a text editor that works for me can make me type and research more efficiently. Text editors are tools, and I’m always curious to see whether the market is offering new ones to get the job done with faster, smarter techniques. As Gabe said, fiddling often gets a bad rap, but my fiddling with text editors has actually allowed me to find apps that facilitate the only process that matters: typing words on a screen.

In the past year, I have taken a look at several text editors. I compared my favorite ones – picking Writing Kit as my go-to editor and research app – but I also kept WriteUp on my iPad’s Home screen, as the app received some interesting updates including iCloud support and swipe text selection. For the past two months, though, I have found myself coming back to another text editor that I had been previously recommended by various Internet pals: Nebulous Notes. And in spite of my publicly stated praise for Writing Kit, I have been getting lots of writing done with it – so much that I haven’t used any other app for my posts and notes. Read more


Launch Center Pro and OmniFocus

 Launch Center Pro and OmniFocus

Michael Schechter has created a series of Launch Center Pro templates to speed up the creation process of repetitive tasks in OmniFocus for iPhone, inspired by David Sparks’ snippets for TextExpander and OmniFocus for Mac. With actions to easily attach the contents of the clipboard to a new task or setting up a reminder to follow up on something with a colleague, Michael’s snippets can be huge timesavers if you’ve been looking for a way to automate certain aspects of OmniFocus on the iPhone.

All I’ve done here is create a new group in Launch Center Pro called OF Actions. This allows me to have 11 rapid-fire actions for my most commonly created tasks. Rather than 11 unique actions, I’ve actually created duplicates for most that include whatever I have on the clipboard. This way I have a version that duplicates the Quick Entry field and another that emulates some aspects of the Clipper.

Based on OmniFocus’ new URL scheme and Launch Center Pro’s support for prompts (more details in our review of the app), these snippets won’t offer the same degree of customization found in desktop solutions like the aforementioned TextExpander or Keyboard Maestro, but they surely are the best way to automate OmniFocus on the iPhone for now. Because of the nature of iOS, you won’t be able to set up scripts that, for instance, let OmniFocus communicate with other apps automatically, but at least you’ll be saving some typing and navigation inside the app.

Inspired by Michael’s work, I have set up actions to access my most used perspectives and a new one called “Review Latest” that makes up for the lack of an Inbox perspective on iOS (as it’s project based rather than context based) and displays the latest tasks I may have added without a context or due date using Captio. Furthermore, I have assigned a scheduled reminder to the action, so that every day after dinner I’ll be reminded by Launch Center Pro to process my newest tasks created throughout the day.

The Omni Group’s Ken Case also chimed in on Twitter explaining how OmniFocus URLs work, and Justin Lancy collected the tweets in a Storify bundle. Nick Winja took a look at how it’s possible to access contexts via URL, as well.

You can see the full text for Michael’s Launch Center Pro snippets here.

Permalink