Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Applications > Looking for batch folder creator

Looking for batch folder creator
Thread Tools
Zubir
Dedicated MacNNer
Join Date: Jun 2004
Status: Offline
Reply With Quote
May 17, 2007, 12:11 AM
 
Hello, all. Anyone know of a program that can create multiple folders at once? I know how to make multiples in the terminal with the "mkdir "blahblah" {1,2,3}" command, but I'm lazy, and want to click a button to do it. There's a million batch renamers, but I can't find a folder creator.

If no one knows of a program, an Applescript or Automator action that will do this would be appreciated very much. Hell, it would probably be a very popular app/plugin.

Cheers.

Z.
     
besson3c
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
May 17, 2007, 12:54 AM
 
Why can't this be a shell script? This would be trivial to create, why make things harder for yourself than they need to be?

For starters, could you explain exactly how you would intend for this to work?
     
Zubir  (op)
Dedicated MacNNer
Join Date: Jun 2004
Status: Offline
Reply With Quote
May 17, 2007, 01:07 PM
 
Alas, I'm no programmer. The reason for such a thing is just what it sounds like... a need to create multiple folders at once. Do you have the knowledge to create such a script? I'd appreciate it.
     
peeb
Addicted to MacNN
Join Date: Mar 2006
Status: Offline
Reply With Quote
May 17, 2007, 01:10 PM
 
I think what Besson is trying to do is to understand why you want to do this - what is it you are trying to achieve. There may be an easier way to do it.
     
Zubir  (op)
Dedicated MacNNer
Join Date: Jun 2004
Status: Offline
Reply With Quote
May 18, 2007, 10:39 PM
 
Um, I can't explain it any simpler that I already have. I want a program where I'm able to enter the number of folders I want created in a field, what I want them named in a field, enter where I want them created, click an execute button, and have the folders created.

This what I'm talking about. I can't find a program like this for Mac:

Batch Folder Creator (Personal Edition) - Download - Create Thousands of Folders at once

or this:

Folder Maker v2.1 - batch folder creation and batch file creation - create folders quickly :: skyjuicesoftware.com

If anyone doesn't know of a Mac program that does this, can someone please help me figure out an Automator workflow, or something?
     
TETENAL
Addicted to MacNN
Join Date: Aug 2004
Location: FFM
Status: Offline
Reply With Quote
May 19, 2007, 05:14 AM
 
[codex]tell application "Finder"
set whereToCreate to choose folder with prompt "Where do you want to create thousands of folders?"
display dialog "How should the folders be called?" default answer "New Folder"
set nameOfFolders to text returned of the result
display dialog "How many folders do you want to create?" default answer "1"
set numberOfFolders to text returned of the result

repeat with i from 1 to numberOfFolders
set thisFolderName to nameOfFolders & " " & i
set thisFolderPath to (whereToCreate as string) & thisFolderName & ":"
if not (exists folder thisFolderPath) then make new folder at whereToCreate with properties {name:thisFolderName}
end repeat
end tell[/codex]

Error checking is left out as an exercise for the reader.
     
JKT
Professional Poster
Join Date: Jan 2002
Location: London, UK
Status: Offline
Reply With Quote
May 19, 2007, 05:33 AM
 
Deleted
( Last edited by JKT; May 19, 2007 at 05:43 AM. Reason: Forgot to refresh before posting and TETENAL already posted the solution)
     
Zubir  (op)
Dedicated MacNNer
Join Date: Jun 2004
Status: Offline
Reply With Quote
May 19, 2007, 10:09 PM
 
Originally Posted by TETENAL View Post
[codex]tell application "Finder"
set whereToCreate to choose folder with prompt "Where do you want to create thousands of folders?"
display dialog "How should the folders be called?" default answer "New Folder"
set nameOfFolders to text returned of the result
display dialog "How many folders do you want to create?" default answer "1"
set numberOfFolders to text returned of the result

repeat with i from 1 to numberOfFolders
set thisFolderName to nameOfFolders & " " & i
set thisFolderPath to (whereToCreate as string) & thisFolderName & ":"
if not (exists folder thisFolderPath) then make new folder at whereToCreate with properties {name:thisFolderName}
end repeat
end tell[/codex]

Error checking is left out as an exercise for the reader.
Thanks a ton! This is exactly what I was looking for!

You should post this to the freeware/shareware sites. It's a very useful tool.

Thanks again!
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 11:52 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,