• 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
Re: Creating Nested Folders
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating Nested Folders


  • Subject: Re: Creating Nested Folders
  • From: "Mark J. Reed" <email@hidden>
  • Date: Thu, 29 Sep 2005 14:18:15 -0400

You're making all of your folders "at location_folder".  You want to
make the second one "at shotFolder", the third one "at scansFolder",
etc.  Also, you can create the folder and name it at the same time via
something like this:


   set shotFolder to (make new folder at location_folder with
properties {name: item 1 of nameList})



On 9/29/05, Richard Patterson <email@hidden> wrote:
> 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
>
>


--
Mark J. Reed <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

References: 
 >Creating Nested Folders (From: Richard Patterson <email@hidden>)

  • Prev by Date: Creating Nested Folders
  • Next by Date: Re: make a new folder within an exisitng folder
  • Previous by thread: Creating Nested Folders
  • Next by thread: Re: Creating Nested Folders
  • Index(es):
    • Date
    • Thread