Re: Finding the Path to a renamed File
Re: Finding the Path to a renamed File
- Subject: Re: Finding the Path to a renamed File
- From: Emmanuel <email@hidden>
- Date: Tue, 18 Sep 2001 15:39:53 +0200
At 14:51 +0200 18/09/01, Don Thompson wrote:
>
set NewFileName to "MyCustomName"
>
set WhereToCreate to "Macintosh HD:MyFolder:"
>
>
-- create the file in the folder (which does exist)
>
----------------------- not tested
tell application "Finder" to make new folder at alias WhereToCreate with
properties {name:NewFileName}
-----------------------
or, less smart:
----------------------- not tested
tell application "Finder"
set theNewFolder to make new folder at alias WhereToCreate
set name of theNewFolder to theNewFileName
end
-----------------------
HTH
Emmanuel