Gizmojar Shortcuts App Actions and gizmojar:// Links
Run Gizmojar tools and recipes from the Shortcuts app or gizmojar:// links: action parameters, link syntax, tool names, options, limits and error messages.
Updated 6 min read
On this page
This page shows how to run Gizmojar tools and recipes from the Shortcuts app or from gizmojar:// links, without working in the Gizmojar window. You can open links from Terminal, scripts, launchers or other apps. Results are saved as new files. Your originals aren't changed.
Before you start
- Automation needs a license or an active trial. After the trial ends without a license, Shortcuts actions and
gizmojar://links refuse with "Gizmojar needs a license or an active trial to run this." - Automation runs one tool or one saved recipe at a time. To chain steps, build a recipe first (see Recipes) and run it by name.
Gizmojar actions in the Shortcuts app
Gizmojar adds three actions to the Shortcuts app:
| Action | Inputs | What it does |
|---|---|---|
| Run Gizmojar Tool | Files, Tool, Format, Quality, Target Size | "Runs a Gizmojar tool on files and returns the results. Originals are never changed." |
| Run Gizmojar Recipe | Recipe, Files | Runs a saved recipe and returns the result files |
| Optimize Clipboard Image | none | "Re-encodes the image on the clipboard and puts it back if it gets at least 5% smaller." |
Gizmojar also provides App Shortcuts, so these phrases are available without building a shortcut: "Run a Gizmojar tool", "Run a Gizmojar recipe" and "Optimize the clipboard with Gizmojar".
If an earlier action hands over files as data rather than as files on disk, Gizmojar writes them to ~/Library/Caches/Gizmojar/Shortcuts/<id>/, and the results are saved next to them in that folder. That is a cache folder, so add a step that moves or saves the results if you want to keep them.
Running a tool from Shortcuts
- In the Shortcuts app, create a new shortcut.
- Add the Run Gizmojar Tool action.
- Set Files, for example to the Shortcut Input or to the output of an earlier action.
- Choose a Tool. The list has 34 tools; the default is Compress Image.
- Set any of the optional parameters the tool uses:
- Format: JPEG, PNG, HEIC, TIFF, MP4, MOV, M4A, AAC, WAV or AIFF.
- Quality: Low, Medium or High.
- Target Size: a size such as
25 MBor500 KB, for fit-under compression.
- Pass the returned result files to the next action if you need them.
Quality doesn't work the way you might expect for video. Video Compress uses its own Quality level (Best, High, Balanced, Small or Tiny), not this parameter, so for video, setting Quality only switches off fit-under mode. If you need a specific video quality level, save it in a recipe and use Run Gizmojar Recipe.
Running a recipe from Shortcuts
- Add the Run Gizmojar Recipe action.
- Choose a Recipe. Your own recipes are listed, plus the built-in ones ("Web-ready photos", "Private HEIC", "Share under 25 MB", "PDF under 5 MB") unless you've deleted them.
- Set Files.
- Use the returned files in later actions if you need them.
Each step runs with the options saved in the recipe. That makes a recipe the dependable way to automate exact settings, such as a video quality level or several steps in a row. Final files are named <original> (<recipe name>).<ext>. If the recipe ends with a Rename step, its pattern names them instead.
gizmojar:// link syntax
There are four kinds of link:
| Link | What it does |
|---|---|
gizmojar://run?tool=<tool>&path=<path>&<options> | Runs a tool with no window. Add show=1 to open the command bar and run it there. |
gizmojar://recipe?name=<recipe>&path=<path> | Runs a saved recipe. The name match ignores case. |
gizmojar://open?path=<path> | Opens the files in the command bar without running anything |
gizmojar://clipboard | Optimizes the image on the clipboard |
Paths:
- Use absolute paths (
/Users/you/Movies/clip.mov) or home-relative paths (~/Movies/clip.mov). - For several files, separate the paths with
|or repeatpath=. - Write spaces as
%20, as inname=Web-ready%20photos.
Examples:
gizmojar://run?tool=compress&path=~/Movies/a.mov|~/Movies/b.mov&target=25MBCompresses two videos, aiming to fit each under 25 MB.
gizmojar://recipe?name=Web-ready%20photos&path=~/Desktop/photo1.jpg&path=~/Desktop/photo2.jpgRuns the built-in "Web-ready photos" recipe on two images.
gizmojar://open?path=~/Downloads/scan.pdfLoads a PDF into the command bar so you can pick a tool yourself.
To open a link from Terminal or a shell script, pass it to open:
open "gizmojar://run?tool=gif&path=~/Movies/demo.mov&fps=12&width=480"This makes an animated GIF at 12 fps and 480 px wide (never wider than the source). Keep the quotes: without them the shell treats & and | as its own operators.
When a run finishes, Gizmojar shows a result toast such as "Compress: 3 results, −72%".
Tool names and parameters
Tool names
The tool= value can be an action ID (for example imageConvert) or a verb. Gizmojar resolves a verb by the kind of file you pass, so compress on a video runs video Compress and on a PDF runs PDF Compress.
| Verb | Runs |
|---|---|
compress, optimize | Compress |
convert | Convert |
trim | Trim |
rotate | Rotate (video) or Rotate Pages (PDF) |
resize | Resize |
gif | Make GIF |
frame | Grab Frame |
speed | Change Speed |
mute | Mute |
extractaudio | Extract Audio |
strip | Strip Metadata |
removebackground | Remove Background |
ocr, text, extracttext | Extract Text |
watermark | Watermark |
iconset, icons | Icon Set |
enlarge, upscale | Enlarge |
crop | Crop |
merge | Merge |
split | Split |
searchable | Make Searchable |
topdf | Images → PDF |
toimages | PDF → Images |
transcribe | Transcribe |
deletepages | Delete Pages |
reorderpages | Reorder Pages |
Parameters
A parameter that doesn't apply to the chosen tool stops the link: Gizmojar shows a toast and runs nothing.
| Parameter | Values | Sets |
|---|---|---|
quality | low, medium, high or 1–100 | Quality (for video, see below) |
target | a size such as 25MB or 500KB | Fit-under target size |
format | an output format | Output format |
codec | h264, hevc, keep | Video codec (keep re-wraps without re-encoding) |
hevc | switch | Use HEVC (smaller files) |
max | pixels | Longest side |
percent | percent | Scale by percent |
start, end | times | Start and end of a range |
time | a time | Frame position |
speed | 0.25–4 | Speed factor |
fps | 1–30 | Frame rate |
width | 16–4096 | Width in pixels |
dpi | 36–600 | Resolution |
scale | 1.1–4 | Scale factor |
turn | 90, 180, 270 | Rotation in degrees |
pages | page ranges such as 2, 5-7, end | Pages for page tools |
keep | profile, exif, location, dates, tags or none | Which metadata the result keeps |
pages takes the page-range syntax the app uses: N, N-M, M-N (backwards), N- (to the end), -N (the first N pages), and end or last. Separate items with commas, spaces or semicolons.
The quality caveat from Shortcuts applies here too. On a video, quality doesn't choose the Compress quality level; it only switches off fit-under mode. Use target= for a size goal, or a recipe for a specific quality level.
Tools that can't be automated
These tools need the Gizmojar window. They can't run from a Shortcuts action or a gizmojar:// link:
- Batch Rename
- Reveal and Copy Path
- Add Password and Remove Password
- Sign
- Read QR / Barcode
The Run Gizmojar Tool action's Tool list also leaves out Crop Video, Split Video, Export Frames, Normalize Loudness, audio Compress, Redact and Adjust. These aren't excluded from recipes, so put the tool in a recipe and run it with Run Gizmojar Recipe. Rename can also be a recipe's last step, where it names the result files. Password tools, Sign, Read QR / Barcode, Reveal and Copy Path can't be recipe steps at all.
Per-file option overrides don't carry over either. They exist only in the window and last for one session.
Error messages and the license requirement
If a link has an unknown or inapplicable parameter, a bad value, a missing file or a tool that can't be automated, Gizmojar shows a toast and runs nothing.
| Message | Cause | Fix |
|---|---|---|
| "Unknown parameter “x”." | A misspelled or unsupported parameter name | Check the name against the parameters table |
| "“name” doesn't apply to Compress." | A real parameter the chosen tool doesn't use | Remove it, or choose a tool that takes it |
| "No files given — add path=/full/path/to/file." | The link has no path= | Add at least one absolute or ~/ path |
| "Rename needs the Gizmojar window — it can't run from a link or shortcut." | Batch Rename was requested | Run it in the window, or as the last step of a recipe |
| "Gizmojar needs a license or an active trial to run this." | The trial has ended and no license is entered | Choose Enter License… in the app menu |
If a link does nothing:
- Check that each path exists and points to a file the tool accepts. The verb resolves by file kind, so
trimon a PDF has nothing to run. - In Terminal, check that the whole link is in quotes.
- Check that
name=matches a saved recipe, with spaces written as%20.
For other messages, see Troubleshooting.