macos-shortcuts

Crates.iomacos-shortcuts
lib.rsmacos-shortcuts
version1.1.0
created_at2025-10-13 12:50:13.629606+00
updated_at2025-10-14 16:19:26.887612+00
descriptionThis crate enables access to Apple Shortcuts for Mac
homepagehttps://gitlab.com/mrhornsby-public/macos-shortcuts
repositoryhttps://gitlab.com/mrhornsby-public/macos-shortcuts
max_upload_size
id1880483
size52,888
Mark (mrhornsby)

documentation

README

macos-shortcuts

This project contains a rust crate that can be used to interact with Apple Shortcuts for Mac.

The crate currently supports loading shortcuts and executing them. It uses AppleScript and the osascript command to load the data because this is the only obvious way to be able to load the icon data associated with the shortcut. To be more efficient at executing the shortcut and allowing input and output data to be correctly processed it uses the shortcuts command.

There seem to be two small bugs with the shortcuts command. Firstly it doesn't seem to allow using - as the output filename to pipe directly to stdout (this may be the same for input but this hasn't been tested). Secondly It doesn't seem to like the . character in filenames, so the temporary files created for input and output have had the . character removed from their names.

Commit count: 0

cargo fmt