| Crates.io | macos-shortcuts |
| lib.rs | macos-shortcuts |
| version | 1.1.0 |
| created_at | 2025-10-13 12:50:13.629606+00 |
| updated_at | 2025-10-14 16:19:26.887612+00 |
| description | This crate enables access to Apple Shortcuts for Mac |
| homepage | https://gitlab.com/mrhornsby-public/macos-shortcuts |
| repository | https://gitlab.com/mrhornsby-public/macos-shortcuts |
| max_upload_size | |
| id | 1880483 |
| size | 52,888 |
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.