Author Topic: programmatically creating folders  (Read 1496 times)

Offline IIO

  • Platinum Member (500+ Posts)
  • *****
  • Posts: 3754
  • just a number
  • Liked:
  • Likes Given: 177
programmatically creating folders
« 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
insert arbitrary signature here

Offline xerograph

  • Active Member
  • *
  • Posts: 8
  • new to the forums
  • Liked:
  • Likes Given: 0
Re: programmatically creating folders
« Reply #1 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:



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...

Offline IIO

  • Platinum Member (500+ Posts)
  • *****
  • Posts: 3754
  • just a number
  • Liked:
  • Likes Given: 177
Re: programmatically creating folders
« Reply #2 on: February 03, 2021, 09:18:31 PM »
german is no problem. :)

it looks nice, how you create subfolders there? using tab?
insert arbitrary signature here

Offline OS923

  • Platinum Member (500+ Posts)
  • *****
  • Posts: 888
  • Liked:
  • Likes Given: 10
Re: programmatically creating folders
« Reply #3 on: February 05, 2021, 02:09:29 PM »
I’m looking for something like that too.

Offline OS923

  • Platinum Member (500+ Posts)
  • *****
  • Posts: 888
  • Liked:
  • Likes Given: 10
Re: programmatically creating folders
« Reply #4 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?

Offline IIO

  • Platinum Member (500+ Posts)
  • *****
  • Posts: 3754
  • just a number
  • Liked:
  • Likes Given: 177
Re: programmatically creating folders
« Reply #5 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.
insert arbitrary signature here

Offline IIO

  • Platinum Member (500+ Posts)
  • *****
  • Posts: 3754
  • just a number
  • Liked:
  • Likes Given: 177
Re: programmatically creating folders
« Reply #6 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.
insert arbitrary signature here

Offline OS923

  • Platinum Member (500+ Posts)
  • *****
  • Posts: 888
  • Liked:
  • Likes Given: 10
Re: programmatically creating folders
« Reply #7 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.

Offline IIO

  • Platinum Member (500+ Posts)
  • *****
  • Posts: 3754
  • just a number
  • Liked:
  • Likes Given: 177
Re: programmatically creating folders
« Reply #8 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.

insert arbitrary signature here

Offline OS923

  • Platinum Member (500+ Posts)
  • *****
  • Posts: 888
  • Liked:
  • Likes Given: 10
Re: programmatically creating folders
« Reply #9 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.

Online teroyk

  • Gold Member (200+ Posts)
  • *****
  • Posts: 447
  • -
  • Liked:
  • Likes Given: 39
Re: programmatically creating folders
« Reply #10 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?
I bought my first new Mac when OS X 10.1 released. And I bought that Mac because it had Mac OS 9 too. And I bought my first 68k Mac when Apple stopped PPC Macs.

Offline OS923

  • Platinum Member (500+ Posts)
  • *****
  • Posts: 888
  • Liked:
  • Likes Given: 10
Re: programmatically creating folders
« Reply #11 on: February 19, 2021, 07:10:08 AM »
Can you show us a "before" and "after" picture of what you want?

Offline IIO

  • Platinum Member (500+ Posts)
  • *****
  • Posts: 3754
  • just a number
  • Liked:
  • Likes Given: 177
Re: programmatically creating folders
« Reply #12 on: February 26, 2021, 06:14:23 PM »
i still havent tested it, but will do at the weekend.
insert arbitrary signature here

Offline OS923

  • Platinum Member (500+ Posts)
  • *****
  • Posts: 888
  • Liked:
  • Likes Given: 10
Re: programmatically creating folders
« Reply #13 on: November 03, 2021, 11:06:11 AM »
The solution in Scheme:

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

 


SimplePortal 2.3.6 © 2008-2014, SimplePortal