Re: Setting file permissions with Applescript
Re: Setting file permissions with Applescript
- Subject: Re: Setting file permissions with Applescript
- From: Rob Jorgensen <email@hidden>
- Date: Wed, 11 Feb 2004 12:01:32 -0500
At 8:44 AM -0500 2/11/04, Douglas Brown wrote:
In creating a new folder or file in OS X.x with applescript, is
there a way to set specific file permissions also with applescript,
or is it necessary to use Unix commands to accomplish this?
Here's a simple example of what can be done (tested in OS X 10.2.8).
Check Finder's dictionary for more info (look at the the properties
of files/folders).
tell application "Finder"
try
make new folder at desktop with properties {name:"New Folder",
owner privileges:read write}
on error e
display dialog e
end try
end tell
-- Rob
_______________________________________________
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.