Finder: Use Cmd-N to Create a New Folder or a New Finder Window
Download The Finder For Windows
New Folder or Window.scpt
(* |
This script is for anyone who still has the classic Mac OS era habit of using |
Command-N to create a new folder in the Finder. It's intended for use with |
Red Sweater Software's excellent FastScripts utility -- a replacement for the |
system's build-in Scripts menu that allows for assigning keyboard shortcuts |
to scripts, on a per-application basis. |
FastScripts: https://red-sweater.com/fastscripts/ |
Install the script here: ~/Library/Scripts/Applications/Finder/ |
In FastScripts, assign the script a shortcut of Command-N. |
Now, whenever you invoke Command-N in the Finder, you'll get prompted to |
choose between creating a new folder or opening a new Finder window. This |
sounds like a pain in the ass, but I've been using this script for years, and |
however annoying it is to add an extra confirmation step each time I create |
a new folder or window, it's far less annoying than getting a new unwanted |
window every time I try to create a new folder. |
Version 1.1, 16 Mar 2017 |
- Added a property to remember the previous selection, and default to that the next time you invoke the script. |
*) |
propertylast_selection : ' |
tellapplication'Finder' |
choose from list {'Folder', 'Window'} default items {last_selection} with title 'New'with prompt 'What:' OK button name'Create'without multiple selections allowed and empty selection allowed |
try |
set_whattoitem1oftheresult |
if _what is'Folder'then |
my make_new_folder() |
else if _what is'Window'then |
my make_new_finder_window() |
end if |
setlast_selectionto _what |
end try |
end tell |
onmake_new_folder() |
tellapplication'System Events' |
tell process 'Finder' |
click menu item'New Folder'of menu 1of menu bar item'File'of menu bar 1 |
end tell |
end tell |
end make_new_folder |
onmake_new_finder_window() |
tellapplication'System Events' |
tell process 'Finder' |
click menu item'New Finder Window'of menu 1of menu bar item'File'of menu bar 1 |
end tell |
end tell |
-- Could do this: |
-- tell application 'Finder' to make new Finder window |
-- But that opens at the root. UI scripting lets the Finder give you exactly what New Window gives you from the menu. |
end make_new_finder_window |
onmake_new_folder_old() |
-- Doing it this way doesn't add the New Folder action to the Undo stack |
-- And you need UI scripting to get the 'untitled folder' text selected anyway |
tellapplication'Finder' |
set_locationto folder offront window |
set_new_folderto make new folder at _location |
setselectionto _new_folder |
tellapplication'System Events' |
tell process 'Finder' |
key code 36-- return |
end tell |
end tell |
end tell |
end make_new_folder_old |
Finder App For Windows 10
Create a new Finder window by opening any other folder. From within this new window, now if you navigate to the desired folder, then you will successfully change this window to the desired folder, and have two windows of this folder. To navigate to the desired folder within a new Finder window, any method will work. Hi Copiancestral thx for this script and information, I followed all you said and it worked. On my 30″ external monitor the two Finder windows comes nicely side by side but the last 1/3 of the panel at the buttom is not covers by the Finder widows and you see your desc or what ever soft are window you had there before launching the side by side script.
Findwindowsticker
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
Finder Windows10
If you use the Command Prompt you know that it always opens in the same size at the same position on your screen when you open it. This is great if the window is a good size, and positioned in the center, or maybe towards the left. Finder, the Mac OS X file system browser, is ultimately just a nice looking GUI application, and it can be interacted with fluidly from the command line. This means you can jump to directories. Go to Finder and select your user/home folder. With that Finder window as the front window, either select Finder/View/Show View options or go command - J. When the View options opens, check ’Show Library Folder’. That should make your user library folder visible in your user/home folder.