Marlin in the Shortcuts App

Four actions: run a recipe, search a file, transform text, open at a line.

Marlin adds four actions to the Shortcuts app. They use the same pipeline, search and transform code as the app, and three of them run without opening a Marlin window.

Find the Actions

Open Shortcuts, make a new shortcut, and search for Marlin in the action list. Saved recipes appear in Run Marlin Recipe after you save them in the Pipeline view.

The Four Actions

Run Marlin Recipe runs a saved recipe over a file and returns the result as a text file.

Search File with Marlin returns the matching lines of a file, each with its line number. You can turn on Regular Expression and Case Sensitive, and set a limit of up to 10,000 lines.

Transform Text with Marlin changes text to UPPERCASE, lowercase, Title Case, Swap Case, lowerCamelCase, UpperCamelCase, snake_case or kebab-case, trims it, or removes gremlins.

Open in Marlin at Line opens a file in Marlin at the line you give. A compressed file opens at its first line.

An Example Shortcut

Get the latest file from your logs folder, pass it to Search File with Marlin with the pattern ERROR, and show the result. Add Run Marlin Recipe to save a filtered copy of the log with your own steps.