Re: Searching for a folder in Applescript.
Re: Searching for a folder in Applescript.
- Subject: Re: Searching for a folder in Applescript.
- From: John Delacour <email@hidden>
- Date: Fri, 5 Sep 2003 19:06:53 +0100
- Mac-eudora-version: 6.1a1
At 9:33 am -0700 4/9/03, Vic Piercy wrote:
I need it to check for the folder first if it is there then
the script will end. If it is not there then it will create a new folder
with the current date. So each day when I log in it will automatically
create a today's date folder in the Home folder.
mkdir is the quickest and neatest way to make a directory. With the
-p option it will create any needed folders in the path, so this
script will create (if they do not exist) 3 folders and return a list
of the folders created. If they exist it will return "".
See man mkdir
set d to do shell script "date '+%m-%d-%y'"
do shell script "mkdir -p -vv ~/junk/junk/" & d
JD
.
_______________________________________________
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.