

Save the service as 'Create New File,' or whatever you like. This makes it possible to change the name and extension of the new file. Click the Options button in the action, and click the 'Show this action when the workflow runs' box. Then drag CurrentFolder from the Variable panel at the bottom of the Automator window to the Where entry of the New Text File action. (Do this by clicking on the drop-down menu.)ĭrag and drop the New Text File action from the Text library into the work area. Set currentPath to insertion location as textĭrag and drop the 'Set value of a variable' action from the Utilities Library, and create a new variable called, for example, CurrentFolder. Paste in the following AppleScript, then click the Hammer icon (to compile the code): on run This makes it easier to assign a keyboard shortcut to our service, which we'll do at the end.ĭrag and drop the 'Run AppleScript' action (in the Utilities Library) into the work area on the right. Set the Service to receive selected folders in Finder (the two drop-down menus at the top of the work area on the right). This will open a new Automator window, set up to create a Service. Start by launching Automator, and in the chooser that appears, select Service.

This a simple Service for creating new files the currently-open folder in Finder, using AppleScript and Automator. This is a bit old, but nothing is drastically different in 10.8: So any recommendations are more than welcome! I've searched a bit for these but haven't found anything of substance I could set up a hacky hotkey workaround but that's suboptimal, in my experience. How can I customize the macOS Finder context menu? I want to add the menu items: On top of that, it'd be really killer to have an "open terminal here" option that would open a terminal window already cd'd into the current working directory. I'd really like to add a "New File" option right under "New Folder" in the right click menu, and just have it make a new file in the selected folder or finder window. However, I very much miss a few features of windows, one of them being how easy it was to create a new text file. I've found my workflow (web developer) has increased substantially and I love the general performance and snappiness of my OSX. Increment / decrement a property value by 0.I've been a native windows'er up until this year and have finally made the jump to OS X. Select the next / previous property or valueĬlick a property name or value then press Tab / Shift+ Tab Hold Shift then click the Color Preview box next to the value Hold Control then click the property valueĬycle through the RGBA, HSLA, and Hex representations of a color value Hold Command then click the property value Go to the line where a property value is declared Toggle Edit as HTML mode on the currently-selected element Select the next / previous attribute after entering Edit Attributes mode Toggle Edit Attributes mode on the currently-selected element Hold Control+ Alt then click the arrow icon next to the element's name Hold Option then click the arrow icon next to the element's name If the node is already collapsed, this shortcut selects the element above itĮxpand or collapse the currently-selected node and all of its children If the node is already expanded, this shortcut selects the element below itĬollapse the currently-selected node. Select the element above / below the currently-selected elementĮxpand the currently-selected node. Press Control+ O to open the Command Menu, type ! followed by the name of the script, then press Enter Press Command+ O to open the Command Menu, type ! followed by the name of the script, then press Enter Opens the Search tab in the Drawer, which lets you search for text across all loaded resources Supported only in the Elements, Console, Sources, Performance, Memory, JavaScript Profiler, and Quick Source panels. Search for text within the current panel. If DevTools has been in its default position for the entire session, then this shortcut undocks DevTools into a separate window Switch back to whatever docking position you last used.
