Skip to content

Instantly share code, notes, and snippets.

@mengstr
Last active March 13, 2024 09:58
Show Gist options
  • Save mengstr/3ad65f5a3352f26ae63d7a737221deda to your computer and use it in GitHub Desktop.
Save mengstr/3ad65f5a3352f26ae63d7a737221deda to your computer and use it in GitHub Desktop.
How to associate .dig files to Digital in macOS
Normally macOS can't associate and run a specified shell script when you doubleclick on a file, but the macOS Automator can make it work.
Here's the steps:
* Run the Automator app and choose "Create new"
* Drag “Run Shell Script” into grey area
![apptype in automator](https://mengstr.github.io/gist-images/Digital/automator-app-type.png)
Change “Pass input” to “as arguments”
Replace the example script with “java -jar /Applications/Digital/Digital.jar $1”
Save it as Digital.app in /Applications/Digital (or wherever you have Digital saved)
Right click on a .dig-file and select “Get Info”
Choose change the “Open with:” to “Other” and navigate to /Applications/Digital and there select the Digital.app
Then click on the “Change All”-button
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment