Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save why-not/f959f89c94adb33b2d815c75fcb86456 to your computer and use it in GitHub Desktop.
Save why-not/f959f89c94adb33b2d815c75fcb86456 to your computer and use it in GitHub Desktop.
Sublime Text OSX Context Menu

Add Sublime Text to OS X Context Menu

  • Open Automator
  • Create a new Service
  • Add a Run Shell Script action
  • Set input to Service receives selected files or folders in any application
  • Set the script action to /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl -n $@
  • Set Pass input to as arguments
  • Save as Open in Sublime Text
@why-not
Copy link
Author

why-not commented Jul 16, 2024

Correction: /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl -n "$@"

@why-not
Copy link
Author

why-not commented Jul 16, 2024

subl --launch-or-new-window "$@"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment