Re: Create a folder with today's date as the folder name
Re: Create a folder with today's date as the folder name
- Subject: Re: Create a folder with today's date as the folder name
- From: Ed Stockly <email@hidden>
- Date: Sat, 09 Feb 2002 20:15:12 -0800
>
>>Can somebody please help me with this small script step
>
>>>>> set the NewFolder to (make new folder at the desktop with properties
{name:datestring})
Beyond the solution for getting the date to use for the folder name, there
are potential problems with using this command to rename the folder.
If a folder or even a file exists on the desktop with the same name, the
Finder will display an error in the user interface indicating that the name
is already in use and another should be selected. This can be a real pain
in an automated workflow.
The solution is to check before you create the folder if another item exists
with the same name and writing a few lines of script to work around the
duplicate. (you could rename the new folder or rename the existing item)
Have a look at this appleMod:
FolderMod <www.applemods.com/getMod.php?script_ID=8>
It might give you a few ideas about how to make this work in an environment
where users may have used dates as file names.
HTH,
ES
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.