Creating a folder hierarchy from variables.
Creating a folder hierarchy from variables.
- Subject: Creating a folder hierarchy from variables.
- From: Pauline Krebs <email@hidden>
- Date: Thu, 10 May 2001 14:50:25 -0500
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!