Mac OS 9 Lives

Mac OS 9 Discussion => Development & Programming => Topic started by: IIO on January 31, 2021, 01:48:00 PM

Title: programmatically creating folders
Post by: IIO on January 31, 2021, 01:48:00 PM
i am looking for a simple solution how to create a bunch of new folders by just typing a name in, then press return (or similar)

OS9 and/or OSX PPC
Title: Re: programmatically creating folders
Post by: xerograph on February 02, 2021, 05:02:02 AM
Not sure if this is a solution for you...
I wrote a app some years ago which generates compex folder sets. Wildcards and color labels included.
It looks like this:

(http://www.gestaltwandler.com/MacVintage/003/UnFolder_screen_01.jpg)

User interface is in german. Basically a FileMaker DB-File with some AppleScript code.
It works fine (I use it 10 - 20 times / month since the last 15 years without problems) but has some minor bugs in the UI. If you are interested I may look over the bugs again and would write an english version...
Title: Re: programmatically creating folders
Post by: IIO on February 03, 2021, 09:18:31 PM
german is no problem. :)

it looks nice, how you create subfolders there? using tab?
Title: Re: programmatically creating folders
Post by: OS923 on February 05, 2021, 02:09:29 PM
I’m looking for something like that too.
Title: Re: programmatically creating folders
Post by: OS923 on February 06, 2021, 09:14:52 AM
What would be the ideal solution? Is there a good program for Windows that we can imitate?
Title: Re: programmatically creating folders
Post by: IIO on February 06, 2021, 09:31:58 AM
for my part i would not mind having to choose the in- and output folders by a menu or by drag and drop. i am used to that procedure from many creative tools.

so maybe textfile -> applescript would already do that.
Title: Re: programmatically creating folders
Post by: IIO on February 06, 2021, 09:39:23 AM
when i think about it, i have a few more requests. moving files into subfolders programmatically by just one click would also be cool.
Title: Re: programmatically creating folders
Post by: OS923 on February 09, 2021, 12:08:25 PM
I wrote a small program where I can add a folder in one instruction. Then it shows the hierarchy of folders with checkboxes. Folders that won't be created are grayed out. It's REALbasic. It can be linked for Windows, OSX and Linux too.
Title: Re: programmatically creating folders
Post by: IIO on February 11, 2021, 09:51:32 AM
actually i need it mostly for OSX PPC.

in OS9 or windows 10 creating a bunch of folders, or renamig them, is okay manually.

in OSX it sucks because it looks clumsy and is slow.*

i am aware of coela and all that stuff, but in an ideal case i would like to create the folders just by pressing RETURN, as if you would be writing the list into a page of text.

long names, btw.


*)
first of all i can stand that nonsense where the text jumps up when you select it for editing. then the editing is interrupted by mounting images or using rar utilities or the unzipping coreservice.

Title: Re: programmatically creating folders
Post by: OS923 on February 15, 2021, 08:58:22 AM
I merged the ”create folder list” and ”create folder tree” ideas into one program for OS 9, OSX PPC and Windows.
Title: Re: programmatically creating folders
Post by: teroyk on February 17, 2021, 03:50:18 AM
I have needed many times is create folders for merge two or more folders with same name in it. Has some body made that kind of folder management tool already?
Title: Re: programmatically creating folders
Post by: OS923 on February 19, 2021, 07:10:08 AM
Can you show us a "before" and "after" picture of what you want?
Title: Re: programmatically creating folders
Post by: IIO on February 26, 2021, 06:14:23 PM
i still havent tested it, but will do at the weekend.
Title: Re: programmatically creating folders
Post by: OS923 on November 03, 2021, 11:06:11 AM
The solution in Scheme:

Code: [Select]
(for-each make-directory '("A" "B" "C"))