Re: Making a folder in the user's library
Re: Making a folder in the user's library
- Subject: Re: Making a folder in the user's library
- From: Philippe GRUCHET <email@hidden>
- Date: Thu, 3 Apr 2003 18:45:04 +0200
From: Jeffrey Mattox <email@hidden>
I want to make a folder, "myFolder", in the current user's
Library/Application Support folder, creating the Application Support
folder, if necessary. I know how to script the Finder to make folders
on the desktop, but I'm stuck when working in the library.
I'm having problem dealing with (1) accessing the library folder and
(2) testing for and creating folders several levels deep. How do I do
this?
You could begin with this routine [no break]:
try
((path to application support from user domain) & "myFolder" as
string) as alias
on error
tell application "Finder" to make at (path to application support from
user domain) with properties {name:{"myFolder"}} new folder
set aPath to result as alias
end try
Kind regards,
Philippe/SVM Mac
http://svmmac.vnunet.fr
_______________________________________________
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.