Scroll down to find the Sublime Text.icns file. We can fix that! If you want the icon from Sublime Text, find your Sublime Text.app file. “But Pat,” you say, “this new button has the default, boring icon. You can even drag and drop a file/folder on to the new button and it will open!! Now you can click on a file or folder and then click your new button! The file/folder will open up in Sublime Text. Then Command+drag and drop this new Application on to your Finder toolbar. Name it whatever you want and save it to your favorite Application directory. Set finderSelection to selection as alias list Set finderSelection to folder of the front window as string * Drag Open In Sublime Text to the toolbar of any finder Wee!! An Even More Fun Way – A Finder toolbar button Now in Finder you can click on a file or folder and, in the menu bar, go to Finder -> Services -> Open With Sublime Text. Others didn’t have a problem with that name. (As a note – I tried to name it “Open In Sublime Text” and the Service menu item refused to show up. I suggest a name like “Open With Sublime Text”. From the “Open with” dropdown choose “Sublime Text.app” On the Library pane on the left click on “Files & Folders” and then drag “Open Finder Items” over to the right pane. In the right pane, for “Service receives selected” choose “files and folders”. A Fun Way – A Service menu item to open directly in Sublime Text There’s a couple other ways to do this that are more fun but do require a bit of setup. The unfun way is to go Finder -> Services -> Open New iTerm Tab Here and then once that opens type subl. Often I find myself in Finder needing to open a file or folder in Sublime Text. At FreeAgent we work on Macs with a good number of us using iTerm2 and some using Sublime Text.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |