Last active
March 13, 2024 09:58
-
-
Save mengstr/3ad65f5a3352f26ae63d7a737221deda to your computer and use it in GitHub Desktop.
How to associate .dig files to Digital in macOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
 | |
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