#ShotOniPhone Shortcut

Today, Greg Pierce posted a tweet about the new #ShotOniPhone Challenge:

Rene Ritchie followed up with this tweet:

And my reply:

When I first saw Rene’s tweet, I knew he was being snarky. However, my first thought went to Shortcuts when I saw it (hence my tweet). Renaming of files on iOS is a perfect use case of Shortcuts. But rather than stop at just simply renaming a file, it’s possible to submit the entry all with a couple of taps on iOS. And now that I’ve said that you can do it with Shortcuts, I figured I should make one if I’m going to put out the thought. So, with a little bit of work, I created the #ShotOniPhone shortcut.

When you install it, you’ll be prompted to input your first and last names: these items are required for the file name if you are going to email in the submission. Once you’ve entered that information, you can either run this as a stand alone shortcut or as an extension from the Photos app.

The first part of the action checks to see if any images were input, and if not, prompts you to select an image; I’ve used this little block countless times in other shortcuts, and copied the same method here. Next, you’ll be prompted for an image caption to go with the perfect #ShotOniPhone image. Then, the image will be given a new file name – which Apple requires for the email submission portion – using the dictionary items you were prompted for when first installing the shortcut and pulling the device type from the image metadata itself.1

Finally, there are a few options for submission: Twitter, Instagram, or email.2 You’ll select which one you would like to choose, and follow the steps from there. (For the Instagram step, it is important to note that the caption is copied to the clipboard and you will have to manually paste it in caption area of the app.) Each method passes the image in its full resolution to the application of choice; I’d recommend email as the first submission, as Twitter and Instagram will likely compress the image.

And that’s it! This shortcut may seem complex, but it’s really simple to run once you get it installed. Not only does it rename the photo for you, it also helps you submit your photo to the challenge. Now anyone can shoot and submit to this #ShotOniPhone Challenge, all from their iPhone. Turns Out™, you don’t need a Mac to do it after all…


  1. This was suggested by Thomas Verschoren, and I’ve updated the shortcut to reflect this. Thanks for the suggestion! 
  2. Weibo is also a part of this, but I don’t have the ability to add the action. So… maybe someone else can add it. 

Drafts 5.6

Last week, Drafts released version 5.6. While it is not as big as some of the other releases before it, it does bring some important enhancements to the app.

Adding Shortcuts

It is now easier than ever to add a specific shortcut to run in Drafts. A new interface is presented when adding a shortcut, as you can see by installing this example shortcut and selecting a shortcut to add. It prompts you for a few different items for running the shortcut, and is a better way of implementing them via the URL scheme. I feel that this method is a bit more user-friendly now that a shortcut has been written to quickly add them, and requires no formal coding knowledge.

Workspace Changes

Workspaces have been available since version 5.0 dropped back in April 2018. It is the single biggest improvement to Drafts, providing users with an infinite number of filtered views of the draft list. Extending it further, you can apply action groups and extended keyboards to a workspace and have what I coined as a module. In Drafts 5.2, the script and capability of automatically making this possible was implemented. In this new version, it is now more accessible to the non-scripting user.

Within the Workspaces menu, you can choose to load in action group or extended keyboard for each of the different workspaces you create. This does sync across devices, so for most users, this is a better way to load module with a single tap without having to know JavaScript. You can also now load a workspace to a specific tab, saving a few taps if needed. However, I personally won’t be using this as my setup involves loading workspaces differently based on the device type (as I laid out in my earlier Drafts piece).

Post and File Management Improvements

Drafts uses CloudKit to sync data to the cloud. There are more aspects of the drafts which are stored there, like location, tags, etc. which don’t tie in nicely to syncing to an iCloud Drive folder. You can, however, use different actions to save specific drafts to other services like iCloud Drive, Dropbox, Box, or OneDrive. Previously in Drafts, the idea of keeping things in the app was not always something you would want to do: you might want to save it to Apple Notes via a share action, or send it to one of a handful of other services as a plain text file or Markdown file.

For the most part, I keep all of my writing in Drafts. Over the past year, I have more in that module than I would like to admit. And I feel some stress of keeping all of these posts in the draft list. With the new features, I have several different ways of handling this. First, I could simply mark the drafts which I’m actively working on and load the writing module to the flagged tab; this is easy enough to do in the workspace settings, and would quickly satisfy the need. But the file management capabilities are something else that I wanted to explore.

What I ended up arriving at was this: I can keep one or two active drafts in the list, and save the rest to a specific folder in iCloud Drive. Once I’m ready to work on another one, I can run an action and be presented with a list of titles to choose from; the action would then load the contents of the draft into my draft list with a specific tag, and I can start writing on it again. When I’m ready to publish, I take that final draft and move it in to my posted folder to file it away. This is all possible thanks to the FileManager script object methods.

I first borrowed from some of my previous scripts to ensure that I was saving things with the correct title. To save the file with that name, I used a file action step, set the folder location to /Draft Posts/ and set the content as [[draft]]. Once this action is run, the draft is then deleted from my draft list to keep it uncluttered.

The next action was much more difficult to create. Within the updated objects, I can pull out the path locations to files located in a specified folder. With a little script magic, I can turn those file paths into readable display names to choose from in a prompt; this will work with all of the files in the directory. Once I have the selected name, I can load that file into Drafts, tag it with my writing tag which automatically places the file into my Writing module, and I can start writing; I also used an “Include Action” step to load my Writing module to bring up my entire writing environment with one tap.

The last action is for publishing my post. I modified my existing standard and linked publishing actions – which I first introduced on MacStories for Drafts 5.4 – to save the file in a new way. First, I use the scripting to save the file one last time to the /Draft Posts/ folder location where I keep the draft posts, then move it to the /Posts/ folder where I keep my final posts as .md files. This happens at the end of the action after everything is posted. Why do this? It allows me to take the one true copy that I finally saved in my draft posts and then move it into the final location. I don’t have to keep the files in multiple places and wonder which one is correct; instead, I just moved out the finished product.

I have also updated the HTML Preview step in my Post to WordPress actions above to include the new rendering options. With this update, Drafts allows the user to specify the rendering of text. Previously, only Markdown was supported in this fashion. But now, you can specify MultiMarkdown or Github–flavored Markdown, saving a bunch of script steps in the process. I updated WordPress actions with %%multimarkdown|text%% for the HTML preview, as well as improved the scripting to commit the Critic Markup changes to pass MultiMarkdown to WordPress, which you can find at the links above. And speaking of Critic Markup, a new highlight syntax color has been added. It provides a bit more visual difference when looking at all of your credit markup notations.

I’m really enjoying this update, as it’s helping me reduce my mental stress by allowing me to manage my files in a better way. Rather than keep all of these possible post ideas within my draft list and cause me more stress. And if you’re reading this and follow some of my other work, you know already how much I hate clutter…

Tactical Bag

Tactical Bag

For a while now, I’ve had the same backpack. It’s been my trusted bag for everything: work, travel, day tripping, etc. It carries everything I could think about needing and then some. But with some changes in my needs, I started realizing that for some situations – like going to my 3rd office that is known as Chipotle – it’s way more than I need. I need something smaller on the weekends when I’m not lugging my work laptop around.1

I needed something smaller, compact, focused. I needed a tactical bag.

So in my quest, I started thinking about what I would need for a trip for personal life, excluding work from it completely. I started developing a list of what I would need at any given time while on the go, and I was intentionally thinking of what I really needed for a day run anywhere I was going. I had some other needs as well: I wanted it to be as small as possible, have some RFID shielding, and also provide some anti-theft options. I did a lot of searching, and even asked Seth – the man who has a bag for damn near anything – about what he uses for this purpose. He had recently picked up the Pacsafe Vibe 325. It looked like a great bag, but it was a bit more than I wanted to spend.2 But when I looked for that bag on Amazon, I found a few other bags that caught my eye.

After a bit of sifting, I ended up finding the Travelon Anti-Theft Urban Sling Bag. While it doesn’t look tactical the way a GO RUCK bag does, this thing just screams urban tactical. Even though this is a small carry, it’s large enough for me to overpack it and get a lot inside of it. I ended up getting black, even though there is a gray option I might have liked more, because it blends seamlessly with the zippers.

Inside Pockets

There are a lot of anti-theft details of this bag: there are locking zippers to keep the compartments secure as you are moving around; the bag and straps have reinforced, anti-slash materials to keep the bag from being cut off my body; and the area for cards/passports are RFID shielded. These features make it a great bag for going around town, traveling to a big city via plane, train, or bicycle. I can even put a water bottle or Yeti tumbler on either side for travel.

EDC Bag 2019
This bag holds more than I thought it would.

With this bag, I’m able to fit most of what I carry on a normal basis. In the bag, I have:

  1. iPad Pro 11″ with Smart Keyboard Folio and Apple Pencil
  2. Anker Wall Charger with USB-C and USB-A ports
  3. Cord organizer containing: Anker Powerline+ USB-C to USB-C cable, Anker Powerline+ USB-C to Lightning cable, Apple USB-C to Lightning cable, and the Satechi Mobile Pro Hub3
  4. Airpods
  5. Foldable Wallet Stand
  6. Glyf by Studio Neat
  7. Joby Gorilla Pod
  8. Magnetic Flashlight4
  9. Knife
  10. Pen
  11. microfiber cloth
  12. A collapsible, reusable grocery bag in case I need increase my storage in an emergency, similar to these
  13. Glasses case – usually carried on the side
  14. reduce Water Bottle
  15. Personal items: Passport, corporate AMEX, a Visa gift card (for emergencies only), Kleenex, Boogie Wipes, Purell, Carmen lip balm, nail clippers, and flushable wipes

That’s a lot for me to carry on any given day; I don’t carry all of the items all the time, but it’s nice to know that I can if I want to do so. And while my goal of this bag was to be light-carry, this bag makes all of this feel minimal when I’m out and about, even when it’s packed full.

I really love the way this has turned out. I wish I could use this all the time, but there are some things that I do need to carry during the weekday which force me to use my backpack. There is, however, a clear delineation with which bag I grab now. But for the times where I need to be minimal while still being dangerous, this will be my go-to tactical bag for the future.


  1. Funny thing is that I decreased the weight of my work laptop by 4 lbs, but yet I still find carrying the thing a pain in my ass. 
  2. He got it for free based on his REI dividend. 
  3. This was a Secret Santa gift given to me by my cousin. It’s monogrammed on the front as well. It’s perfect for what I need. 
  4. I got this at a local store. This is the best approximation of what I have. Cannot say I recommend it because I didn’t buy this exact one, but it’s similar. YMMV.