Re: Creating a folder hierarchy from variables.
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]