• 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
New Folder Needs Password
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

New Folder Needs Password


  • Subject: New Folder Needs Password
  • From: Luther Fuller <email@hidden>
  • Date: Wed, 09 Dec 2009 18:18:26 -0600

Finally. Found a work-around ...

tell application "System Events" to set userName to (name of current user) as text
tell application "Finder"
set owner of diskAlias to userName
set owner privileges of diskAlias to read write
--
--
--
--
set newFolderAlias to (make new folder at diskAlias with properties {name: newName, comment:""}) as alias

The folder is now created without the need for an admin password.

But, why do I need to explicitly set the owner and owner's privileges when the disk is created correctly with these privileges? I'm still confused.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: New Folder Needs Password
  • Next by Date: Re: iTunes script problems
  • Previous by thread: Re: New Folder Needs Password
  • Next by thread: New Folder Needs Password
  • Index(es):
    • Date
    • Thread