• 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: Richard Patterson <email@hidden>
  • Date: Thu, 29 Sep 2005 11:12:42 -0700

I am having trouble creating nested folders.  I can create and rename four folders with the following script:

tell application "Finder"
    set shotFolder to make new folder at location_folder
    set name of shotFolder to (item 1 of nameList)
    set scansFolder to make new folder at location_folder
    set name of scansFolder to (item 2 of nameList)
    set rendersFolder to make new folder at location_folder
    set name of rendersFolder to (item 3 of nameList)
    set elementsFolder to make new folder at location_folder
    set name of elementsFolder to (item 4 of nameList)
end tell

but I want to put the last three folders inside the first.  I have tried everything I can think of.

I can't figure out how to use the ID of the folder.  The sample script in the documentation showing how to use the folder id to open a renamed folder gives an error on my machine saying there is an unknown object.  When I try to add it to the above I get the following results

tell application "Finder"
    make new folder at alias "richard_hd2:temp:"
        folder "untitled folder 2" of folder "temp" of disk "richard_hd2"
    get id of folder "untitled folder 2" of folder "temp" of disk "richard_hd2"
        "Finder got an error: Unknown object type."

What am I doing wrong and what do I need to do to create subsequent folders inside the newly created and renamed folder?


Richard Patterson

Illusion Arts

6700 Valjean Avenue

Van Nuys, CA 91406

818 901-1077

FAX: 818 901-1995

email@hidden



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Creating Nested Folders
      • From: kai <email@hidden>
    • Re: Creating Nested Folders
      • From: "Mark J. Reed" <email@hidden>
  • Prev by Date: Re: subfolder in entourage
  • Next by Date: Re: Creating Nested Folders
  • Previous by thread: Re: make a new folder within an exisitng folder
  • Next by thread: Re: Creating Nested Folders
  • Index(es):
    • Date
    • Thread