Set up ffs
Open Fast File Shift from the location where you’ll keep it. In Settings → Command Line, choose Copy Setup Command. Paste it into Terminal using the default macOS shell (zsh), press Return, then open a new Terminal window.
Run this to check the installation and see the options your version supports.
ffs --helpIn the App Store edition, use Allow Folders… in the same settings pane to grant access to the folders you’ll read from and save to. For the first example, choose Downloads.
Activate the free trial in the app, then quit the app before running a conversion from Terminal. The CLI shares the active trial. After it expires, Mac App Store purchases unlock conversions in the graphical app only. Help and format lookup are always available.
Try it with a small CSV
Download the example to Downloads. It contains two inventory rows. In Terminal, list the formats available for this file, then turn the table into JSON.
Download the example CSVcd "$HOME/Downloads"
ffs formats -- inventory.csv
ffs convert --to json --output . -- inventory.csvOpen the JSON file at the path printed by Terminal. Each row has become a record and the SKU still starts with its leading zeros. Your CSV stays in Downloads.
Convert a batch of photos
Open Terminal in the folder containing your photos. Replace the example names with yours. Both photos will use the same JPEG quality and fit within 1600 × 1200 pixels.
mkdir -p exports
ffs convert --to jpeg --quality 0.9 \
--resize 1600x1200 --resize-mode contain \
--output exports -- "Front view.png" "Side view.png"Use an existing output folder and quote paths that contain spaces. The double dash ends the options so a filename beginning with a dash is handled as an input.
Watch a folder for new files
In a project folder, create two sibling folders. While this command runs, drop still images into incoming and find the WebP copies in converted.
mkdir -p incoming converted
ffs watch --to webp --quality 0.85 \
--output converted -- incomingThe watcher also picks up existing files. It waits for a file to settle before converting it, skips hidden files and subfolders, and leaves originals in place. Keep the output folder outside the input folder. Press Control-C to stop. Restarting begins a fresh scan.
Build a PDF in reading order
Run this in the folder containing your PDFs. Put the cover first and the report second. Use a new filename for the result.
ffs pdf-merge --output packet.pdf -- cover.pdf report.pdfTo make a three-page extract from the packet, give the page numbers in the order you want them to appear.
ffs pdf-pages --pages 3,1-2 \
--output extract.pdf -- packet.pdfCommand reference
Run ffs --help for every option and its accepted values. Use ffs formats to find the exact identifiers for --to.
ffs formats [--json] [-- FILE…]- List output identifiers, or show the available outputs for each supplied file.
ffs convert --to FORMAT --output DIR -- FILE…- Convert one or more inputs with the same settings into an existing directory.
ffs watch --to FORMAT --output DIR -- SOURCE_DIR- Convert eligible files as they arrive in the watched directory.
ffs pdf-merge --output NEW.pdf -- A.pdf B.pdf- Combine PDFs in the order supplied.
ffs pdf-split --output NEW_DIR -- FILE.pdf- Write individual pages into a new directory.
ffs pdf-pages --pages LIST --output NEW.pdf -- FILE.pdf- Select or reorder pages using numbers and ranges, such as 3,1-2.
Read results in a script
Add --json to get a structured report. From the Downloads folder, run the sample conversion again and print its exit status.
ffs convert --json --to json --output . -- inventory.csv
printf 'Exit code: %s\n' "$?"The report includes schemaVersion, exitCode and a results array. For each input, read status and outputs to find the files actually written. A repeat conversion gets a new output name if the previous one exists. With watch --json, read one JSON document per line.
0- All requested work succeeded.
1- At least one conversion failed.
2- Check the arguments, input paths and destination.
3- Check trial or license access and whether the app still has the trial open. This code also covers a failure to save usage.
130- The run was cancelled.