Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benwiggy/Swift-PDFSuite
Swift scripts for PDF manipulation, for Shortcuts or Terminal
https://github.com/benwiggy/Swift-PDFSuite
Last synced: 5 days ago
JSON representation
Swift scripts for PDF manipulation, for Shortcuts or Terminal
- Host: GitHub
- URL: https://github.com/benwiggy/Swift-PDFSuite
- Owner: benwiggy
- Created: 2022-02-03T20:10:47.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-25T12:04:56.000Z (almost 2 years ago)
- Last Synced: 2024-08-02T16:10:12.053Z (3 months ago)
- Language: Swift
- Size: 17.6 KB
- Stars: 13
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Swift-PDFSuite
Swift scripts for PDF manipulation, for Shortcuts or TerminalSince Apple got rid of a python installation that you can rely on in MacOS, our choices for 'out-of-the-box' scripting are limited. AppleScript? No thanks. Perl and Ruby are still there, but who knows for how long?
However, it is possible to use Swift as a scripting language! It's slow as a brick, compared to python, but it works.
And, Apple has provided a mechanism for running Swift scripts in Shortcuts. So I'm translating my python scripts for PDF manipulation into Swift.
You'll find them in the scripts folder.
HOWEVER -- using Swift raises the possibility of creating a command line tool -- 'pdfutil' -- with subcommands and flags for the various actions and options in the scripts. That's the end-goal.