Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swift #8

Open
mcandre opened this issue Oct 13, 2024 · 0 comments
Open

swift #8

mcandre opened this issue Oct 13, 2024 · 0 comments

Comments

@mcandre
Copy link
Owner

mcandre commented Oct 13, 2024

Replace the awkward dual programming language setup (shell and AppleScript) with Swift, a higher level programming language.

Or Go, if the various macOS libraries aren't too difficult to work with from Go. Go prepares us to eventually support Windows and other platforms besides.

That will make it easier to introduce new CLI flags.

Potential to recombine both applications into one application.

We'll also be able to replace the external ImageMagick CLI tool dependency with an image (cropping) library.

Both tigris and euphrates currently depend on bc, awk, and findutils. These happen to come with macOS, though moving that logic into a general purpose programming language like Swift or Go, aids in futureproofing (in case macOS later removes these from the default package set) and cross-platform support (other operating systems use conflicting CLI flags and conflicting default package sets).

We've been on track to need four scripts, due to the quirks inherent to both POSIX sh and AppleScript. General purpose programming languages help us accomplish more, with less code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant