• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Creating nested folders
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Creating nested folders


  • Subject: Creating nested folders
  • From: Jan Erik Moström via AppleScript-Users <email@hidden>
  • Date: Sat, 14 Aug 2021 11:00:43 +0200
  • Authorized-sender: email@hidden

Before sitting down to create (ie modify something I found online) I would like to ask what is the best way to create a folder hierarchy in applescript? (I'm still trying to figure out AppleScript instead of using Python which I'm more used to)

My current task is to create a file in a folder hierarchy that might or might not contain existing folders. In other words, I would like to make sure the the folder hierarchy actually exists before I start writing to the file, example: I have the structure

/a/b

and need to create a file in folder

/a/b/c/d/e

So I would like to call a function that makes sure that the hierarchy "/a/b/c/d/e" exists (which it sometimes might do)?


= jem
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Creating nested folders
      • From: Stan Cleveland via AppleScript-Users <email@hidden>
  • Next by Date: Re: Creating nested folders
  • Next by thread: Re: Creating nested folders
  • Index(es):
    • Date
    • Thread