• 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: Folders within folders
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Folders within folders


  • Subject: Re: Folders within folders
  • From: Louis Genovese <email@hidden>
  • Date: Wed, 19 Oct 2005 20:53:45 -0400

Hi Dave,

No, it was just that simple.
I'm just getting back to Applescript after a long while, and I was only a newbie then, so thanks a lot.

One other issue is that when the first folder is created, it it not named what I've typed into the dialog, it's named with Kanji characters. Ever seen this, and can I fix it?

This is the beginning of my script:

set projectFolder to (choose folder)
tell application "Finder"
    set projDir to make new folder at projectFolder with properties {name:display dialog "Project Name" default answer "" buttons {"OK", "Cancel"} default button 1}

Thanks for the help,

Lou



On Oct 19, 2005, at 8:14 PM, Dave Lyons wrote:

On Oct 19, 2005, at 2:34 PM, Louis Genovese wrote:

I'm trying to make a simple script with which I can right-click in a folder and create a new directory within that folder, that contains more folders.
A structure like this:

Right Click in a folder and create these folders:
New Project Folder
    Folder 1
    Folder 2
    Folder 3
    Folder 4
        Subfolder 1 (in Folder 4)

I can create a new folder simply enough, but I'm having trouble then targeting the newly created folder for the next action.


If you're asking Finder to do the work, and you need to refer to the folder you just created, that should be straightforward:

tell application "Finder"
    set foo to make new folder at desktop
    set bar to make new folder at foo
end tell

Maybe I don't understand the question.  Cheers,

--Dave



 _______________________________________________
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: Folders within folders
      • From: Mr Tea <email@hidden>
    • Re: Folders within folders
      • From: Dave Lyons <email@hidden>
References: 
 >Folders within folders (From: Louis Genovese <email@hidden>)
 >Re: Folders within folders (From: Dave Lyons <email@hidden>)

  • Prev by Date: Re: decompilation insanity
  • Next by Date: Re: Folders within folders
  • Previous by thread: Re: Folders within folders
  • Next by thread: Re: Folders within folders
  • Index(es):
    • Date
    • Thread