Re: Need help with some functions of scripting
Re: Need help with some functions of scripting
- Subject: Re: Need help with some functions of scripting
- From: Timothy Bates <email@hidden>
- Date: Fri, 01 Feb 2002 10:04:05 +1100
On 1/2/02 7:27 AM, "Vogel, Cory" <email@hidden> wrote:
>
I need to tell the finder to look for a specific folder and replace it with
>
another folder. What do I write in the script editor? Your help would be
>
very much appreciated. Thanx
What do you mean "look for". Do you know where it is in advance?
Do you know where the other folder is?
I would write
tell application "Finder"
set oldContainer to folder "disk:folder:"
set oldFolderName to "oldName"
set newFolder to folder "disk:folder:folder:folder"
move folder oldFolderName of oldContainer to the trash
move folder newFolder to oldContainer
set name of newFolder to oldFolderName
end tell