• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Setting file permissions with Applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Setting file permissions with Applescript (From: Douglas Brown <email@hidden>)

  • Prev by Date: Re: Carriage return hassles in Entourage
  • Next by Date: Re: Distribution of Applications
  • Previous by thread: Setting file permissions with Applescript
  • Next by thread: setting color of interface items
  • Index(es):
    • Date
    • Thread