This Week's Sponsor:

Setapp

Start Your 30-day Free Trial Today


Posts tagged with "automation"

Nebulous Notes Updated for iOS 7

Nebulous Notes, a Dropbox-enabled text editor with a macro system, has been updated for iOS 7 with a design refresh and fixes for iOS 7.1 (via Macdrifter).

Nebulous Notes is the app that kickstarted my interest in automating tasks on iOS thanks to its macros, and while I’ve switched to Editorial for my daily writing, Nebulous Notes is still a great choice on the iPhone. Combined with Byword for publishing, Nebulous Notes lets you speed up writing on the iPhone to assemble posts on the go; the macros that I published in October 2012 still work today, and some additions to the macro system were brought with version 6.1 released in November 2012.

Nebulous Notes is available at $4.99 on the App Store.

Permalink

How To Open iCloud Tabs In Editorial for iPad

Editorial iCloud Tabs

Editorial iCloud Tabs

I’ve always wanted to be able to access my iCloud Tabs directly from Editorial, but, unfortunately, due to the lack of an iCloud Tabs API, that’s currently not possible. Last week, however, when I linked to the iCloudTabs for Alfred project by Kevin Marchand and saw that the workflow was based on a bit of Python code, I realized that I could modify his script to find a way to make Editorial read constantly-updated iCloud Tabs from a text file.

What follows is a combination of a server-side script and an Editorial workflow to read and open iCloud Tabs within the app. The system works and I’ve been using it every day for the past week with good results.

Read more



Command-C Browser Actions

Command-C

Command-C

When I’m writing on my iPad at home, there’s a chance I have my MacBook on my desk with either iTunes open (to check for app updates or playing music from iTunes Match/Radio) or MailMate running (because I’ve been having issues with Mail on the beta of iOS 7.1). It’s not uncommon for me to use a dual-monitor setup when writing, relying on my MacBook for Google searches and other reference material – effectively, I use it as a secondary display to my iPad when I’m working on articles that require a fair amount of research.

Since the release of Command-C, I’ve been using Danilo Torrisi’s utility to quickly beam text and URLs across all my devices, using Launch Center Pro actions to speed up the process. Command-C has excellent support for URL schemes – a boon to iPad users who fiddle with automation tricks to save time when working on iOS. I recently realized, however, that most of the content I share with Command-C is made of URLs from Safari, therefore I asked myself whether I could put together a solution to send URLs with one click from Safari without using an external app or keyboard shortcut. It was pretty clear from the beginning that I would end up with a bookmarklet, but I have to thank Danilo for providing the necessary guidance I needed to achieve the kind of workflow I wanted.

The bookmarklet is part made for myself, part proof of concept (as always) for others to iterate upon. It doesn’t only send URLs from Safari on another device with Command-C – it sends the webpage you’re currently viewing in Safari to another app on another device with Command-C.

Read more


xsuc.es for Mobile Safari

Joseph Schmitt, writing in response to Greg Pierce’s hack to simulate x-callback-url support in Chrome:

Wouldn’t it be great if Safari supported Chrome’s back button behavior? It sure would. However, Apple’s laissez faire attitude towards inter-app communication keeps me from holding my breath on this front. Therefore, I was truly excited when I saw this post by the father of x-callback-url himself, Greg Pierce, wherein he launches a simple HTML page in Safari and uses JavaScript to add x-success links to the page on his own. Woah, awesome!

However, Greg’s technique depends on loading a full-screen iframe on the page and overlaying a back button on top to trigger the x-success url. That gets the job done, but I really prefer how Chrome handles this: make the last page jump to the previous app. I brainstormed for a bit and figured I could probably replicate Chrome’s behavior’s using Greg’s idea, and I was right: xsuc.es was born.

To build actions with xsuc.es, see the URL parameters in Joseph’s blog post. The format is easy to understand if you’re already familiar with URL schemes; here’s a demo action to launch a Google search in Safari based on xsuc.es from Launch Center Pro.

xsuc.es is a nicer hack that takes over Safari’s Back button to go back to a previous app like Chrome does, albeit without the app’s name visible alongside the button. You can, however, tap & hold the back button to see the app you’re going back to. It would be nice to mix a success URL scheme with the address of the webpage you’re currently viewing, although I believe that’s beyond the limit of how much it’s possible to work around Safari’s JavaScript.

Permalink

Creating and Sharing Text Files In Launch Center Pro

When Launch Center Pro 2.2 was released last month, I mentioned the addition of Dropbox actions for creating and modyfing text files, but I didn’t share any action example because I couldn’t find a possible use of the feature in my workflow. This morning, I realized that my old workflow to generate and share text files with Dropbox could be simplified with Launch Center Pro, so I rewrote it using the app’s new Dropbox functionalities.

I often need to create text files and share them quickly with Dropbox. These are usually notes that don’t fit in a Twitter DM or long crash reports for developers of apps I’m testing. In my old workflow, I used to type file name and file contents in Launch Center Pro, then, with two steps of inter-app communication, upload the file with Drafts, get the shareable link back with Launch Center Pro, and start a new tweet with the link in Tweetbot.

The workflow still gets the job done but the new version is simpler, faster, and more flexible. It’s just three steps:

  • Type file name;
  • Type file contents;
  • Get public link to text file in Dropbox.

With a single action that doesn’t involve switching between apps, I can type a file name in a Launch Center Pro prompt, insert contents manually or by pasting, and hit Done to create a text file in Dropbox. Launch Center Pro gets the link of the just-created file and presents an iOS share sheet with a series of options for the file’s public link so that I’m not limited to Tweetbot anymore; I discovered that I often needed to DM or email a link, and with the old workflow I was forced to start a new tweet then select and copy the link manually from it. With the new action, everything happens inside Launch Center Pro in seconds and I can pick the best option for me (it’s usually “Copy”).

I was skeptical as to whether I would need Dropbox actions in Launch Center Pro, but this workflow shows some clear benefits of Contrast’s app – keyboard prompts and a native share sheet combined with Dropbox text features make for a quick and elegant note-taking and sharing experience.

You can download the action here.


Matching URLs In Editorial with John Gruber’s Regex Pattern

Editorial for iPad

Editorial for iPad

When I’m writing in Editorial, I often need to make sure I’m dealing with a valid URL in the system clipboard, the document editor, or in a variable. To do so, I’ve long employed John Gruber’s liberal, accurate regex pattern for matching URLs, which has reliably allowed me to confirm that a workflow is about to handle a proper URL rather than a string of text that contains something else. Gruber recently improved the regex pattern again, and that seemed like a good opportunity to briefly detail how I’ve integrated his pattern in my workflows.

The key to match URLs and provide error-handling features in Editorial is to use a conditional block based on a regular expression pattern. Editorial comes with this functionality built-in: given a regex pattern, a block of actions can be run only if a value (plain text or variable) matches the pattern. In this way, you can run a set of actions if you have a URL, and another set if you don’t have a valid URL.

I’ve created a simple workflow that can be installed and reused as a preset in other workflows. The workflow, called Match and Open URL, consists of a single If block that checks for a URL contained in the clipboard. If you have a URL that matches Gruber’s pattern, the URL will be extracted from the clipboard and launched in the browser; if you don’t have a URL…it’s up to you to provide an alternative.

Editorial makes it extremely easy to build this kind of advanced workflow with just a few built-in actions. Gruber’s single-line version of the regex pattern can be pasted in Editorial’s If action with no modifications; inside the If block, the text in the clipboard is passed to a Find action that extracts a URL using the same, untouched single-line regex pattern. The extracted URL is opened in the browser and a HUD alert is displayed.

Combining Gruber’s regex pattern and Editorial’s workflow system can yield interesting results. You could use a variable instead of the system clipboard to match URLs; you could implement the pattern in a Repeat block that performs a set of actions for every matched URL found in the target text; instead of having my workflow inside an If block, you could match a URL among other bits of text, extract it, and do something with it. Editorial is a text automation playground and your imagination’s the limit.

You can download the workflow on Editorial Workflows’ website, and check out John Gruber’s regex pattern here.

Note: The screenshot above shows a beta version of Editorial, currently in testing.


TAKE ACTION - Action Menu Generator For Launch Center Pro

Nice work (and great name) by Jeff Mueller: starting from my idea for an action menu for Safari in Launch Center Pro, he made a web app to simplify the process of assembling the bookmarklet. You can choose from a set of emojis for icons, select one of the built-in actions (so you don’t have to write URL schemes), and hit Create Menu to generate a menu. It’s very simple and much better than writing code manually.

I hope that Jeff will add more app actions and emojis soon. Check it out here.

Permalink

Safari Action Menu In Launch Center Pro

Launch Center Pro action menu

Launch Center Pro action menu

Last week, I was looking at the way I use Safari and save links to other apps and services, and I realized that I wanted a unified action menu to group some of my most used bookmarklets together. While this can be done by creating a bookmark folder in Safari, folders require too many taps on the iPhone and I’d like to have better visual differentiation between actions with unique icons for each one of them. That seemed like a good opportunity to test the capabilities of Launch Center Pro (now on the iPad as well) when it comes to lists and JavaScript, so I got to work.

A fair warning: Though my solution works, the code isn’t pretty. Until Apple improves the way apps can share information with each other, we’re stuck with hacks like URL schemes, JavaScript, and manual encoding. If you want to customize what I came up with, you’ll have to manually edit URL schemes and test everything on your own. If you’re not concerned about a bookmarklet’s prettiness, go ahead – I’m fairly satisfied with the results. Read more