This Week's Sponsor:

Kolide

Ensures that if a device isn’t secure it can’t access your apps.  It’s Device Trust for Okta.


Posts tagged with "javascript"

Shortcuts for Mac: The Future Is Now

Source: Apple.

Source: Apple.

To say we’ve followed Shortcuts closely at MacStories is probably an understatement. Federico was relying on it to run MacStories months before it was publicly released as Workflow, and today, the app is deeply embedded in every aspect of our production of the website, podcasts, and Club MacStories content, as well as the way we operate the business.

As someone who works across a Mac and iPad all day, the lack of Shortcuts on the Mac was frustrating, but something I was willing to deal with because the app was such a good fit for the way I worked, even when I had to run it in parallel to my Mac instead of on it. Going into WWDC, though, my feelings about automation on the Mac aligned closely to what Jason Snell wrote on Six Colors earlier this year. As we discussed on AppStories, the time had come for Shortcuts to be available on all of Apple’s platforms, which was why I was so pleased to see it become a reality during this week’s WWDC keynote.

Read more


FS Bookmarks: A Shortcut to Reopen Files and Folders Directly in the Files App

A couple weeks ago on our iPad-focused podcast Adapt, Ryan challenged me to figure out a way to turn the iPad’s Home screen into a desktop-like environment with icons to reopen files and folders directly in the Files app. At first, I thought it couldn’t be done: unlike the Mac’s Finder, Files doesn’t let you create aliases to folders or place files on the Home screen; the Shortcuts app can create Home screen icons, but it doesn’t have access to documents located outside Shortcuts’ iCloud Drive container.

As I detailed on Adapt yesterday, I’m happy to introduce FS Bookmarks, a shortcut that lets you create direct launchers for files and folders stored in the Files app. FS Bookmarks is a hybrid Shortcuts-Scriptable tool that takes advantage of a native Files API (which I will call “bookmarks”) to expose the filesystem path of any file or folder stored in the Files app.

With the launchers created via FS Bookmarks, you’ll be able to reopen any document in the Files app (in Quick Look preview mode) or navigate to any folder you want to quickly access. Best of all, you don’t need to know or even see Scriptable’s JavaScript code at all: FS Bookmarks takes care of installing the necessary scripts for you; you just need to pick the files and folders you want to create launchers for, and that’s it. FS Bookmarks was designed to abstract the complexity involved with retrieving the filesystem paths used by the Files app.

Read more


Compiling and Exporting Chapters for My iOS 12 Review with Drafts 5

Back in June, I wrote on MacStories that I was evaluating whether Drafts 5 could replace Editorial for my Markdown automation and become the app I use to write my annual iOS review. Putting together these longform pieces involves a lot of writing, editing, and navigating between different sections; the more I can automate these tasks, the more time I can spend doing what actually matters for the review – testing the new version of iOS and ensuring the review is up to my standards.

Once I started looking into Drafts 5, I realized I could take advantage of its JavaScript automation engine to build a custom action that would compile the latest version of my iOS review draft and back it up to multiple locations as a single Markdown (.md) text file.

Read more