• 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 a folder hierarchy from variables.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating a folder hierarchy from variables.


  • Subject: Re: Creating a folder hierarchy from variables.
  • From: Larry Nix <email@hidden>
  • Date: Sat, 23 Jun 2001 10:19:36 -0400
  • Organization: AIS Computers

Hi Pauline
the "make new folder" command
returns a reference to the new folder that you can
use to find it, move it, rename it, whatever you wish.

eg:
-- make folder

tell application "Finder"
set NewFolderRef to make new folder of alias "VolumeName:FolderName:"
set name of NewFolderRef to "New Name"
end tell

Welcome
YT
LNIX

Pauline Krebs wrote:

> Hello!
> I am just beginning to learn AppleScript and have ran into a brick wall. Any
> suggestions or assistance would be tremendously appreciated.
>
> I am trying to create a folder hierarchy of one main folder and 5 subfolders
> on the network. Within the script I ask the user for 3 variables and
> depending on the input the folder is created, named, and filed in the
> appropriate area on the network.
>
> The 3 variables are VarProjectNumber, VarProjectFormName, and
> VarProjectRevDate. The script will create, name, and file the main folder
> correctly but I am unable to create the 5 subfolders below the newly created
> main folder. I can't get the script to recognize or find the newly created
> folder.
>
> Script:
> make new folder at VarProjectLocation with properties {name:VarProjectNumber
> & " " & VarProjectFormName & " " & VarProjectRevDate}
>
> -- This is where the script stops working.
> -- Setting the variable SubVarProjectLocation to the newly created main
> folder above.
> set SubVarProjectLocation to VarProjectNumber & " " & VarProjectFormName & "
> " & VarProjectRevDate
>
> --Creating and naming one of the 5 subfolders.
> make new folder at SubVarProjectLocation with properties
> {name:VarProjectNumber & " " & "DESIGN COLLECT"}
>
> etc.
>
> ANY SUGGESTIONS!
> _______________________________________________
> applescript-users mailing list
> email@hidden
> http://www.lists.apple.com/mailman/listinfo/applescript-users

[demime 0.98b removed an attachment of type text/x-vcard which had a name of l.nix.vcf]


  • Prev by Date: Re: Why isn't there a constant called finder?
  • Next by Date: Re: applescript-users digest, Vol 2 #795 - 15 msgs
  • Previous by thread: Folder Actions on Subfolders?
  • Next by thread: Re: applescript-users digest, Vol 2 #795 - 15 msgs
  • Index(es):
    • Date
    • Thread