Making New Folder in any active window I have open.

I’m new to applescript… and I need to make new folders in any window I have active or open at the time…including different
servers… thanks for the help in advance…

Zeek:

As long as you are runned OS X 10.3 or later, you do not need to script this. Open any Finder window, and click the little cigar shaped bubble in the upper right corner. Switching this on and off will toggle between a full window and an abbreviated window. With the full window, Ctrl-click (or right click) the wide portion on the top, and choose Customize Toolbar from the menu. You can drag a whole bunch of different tools onto the upper portion of the window. One of them is New Folder. Now, any time you open a Finder window, regardless of which machine you are accessing, you can make a new folder right there, one click.

Good luck,

Hi,

Say you wanted to auto name a folder with a date stamp, you can use the Finder ‘insertion location’ property. Something like this:

set cur_date to (current date)
set date_string to date string of cur_date
set time_secs to time of cur_date
set time_string to text -5 thru -1 of (“0000” & time_secs)
set folder_name to (time_string & " - " & date_string)
tell application “Finder”
activate
set ins_loc to insertion location
make new folder at ins_loc with properties ¬
{name:folder_name}
end tell

gl,