A Finder toolbar icon to open current selected file/folder with Sublime
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
Open With Sublime.app.zip



A Finder toolbar icon to open current selected file/folder with Sublime.

How to use?

  • Download the zip file
  • Unzip to Applications folder (or any folder that you won't mistakenly delete the app)
  • Right-click to open to pass the Mac security check
  • Hold Option+CMD and drag the application to toolbar
  • Enjoy

How to create the app manually?

Open AppleScript Editor, copy the following source and export as Application.

 Open in Sublime Text
 To use:
  * Drag Open In Sublime Text to the toolbar of any finder
  window to add it to the toolbar

on run
	tell application "Finder"
		if selection is {} then
			set finderSelection to folder of the front window as string
			set finderSelection to selection as alias list
		end if
	end tell
end run

-- script was drag-and-dropped onto
on open (theList)
end open

-- open in Sublime Text
on subl(listOfAliases)
	tell application "Sublime Text"
		open listOfAliases
	end tell
end subl


Looking the same thing for VS Code?

Please see this repo open-folder-with-vs-code