• 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: Ownership and permissions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Ownership and permissions


  • Subject: RE: Ownership and permissions
  • From: "Reese, Steve" <email@hidden>
  • Date: Mon, 15 Dec 2003 06:08:21 -0800
  • Thread-topic: Ownership and permissions

set passwd to "mypassword"
set filename to "filename.txt"
set owner to "user"
set group to "group"
do shell script "chmod 755 " & filename password passwd with administrator privileges
do shell script "chown " & owner & ":" & group & " " & filename password passwd with administrator privileges

I use system.osax (http://www.bekkoame.ne.jp/~iimori/sw/systemOSAX.html)
to askpassword and hide it as it is being typed rather than embed the password in the script.

stevan

-----Original Message-----
From: Peter Mathiessen [mailto:email@hidden]
Sent: Mon 12/15/2003 1:22 AM
To: email@hidden
Cc:
Subject: Ownership and permissions
Hi all,

Anyone who knows if it is possible to change Ownership and permissions for a
file by applescript.

If so, please tell me how to do it.


Live long and prosper
Peter mathiessen
_______________________________________________
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.
_______________________________________________
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.

  • Prev by Date: Strange iDisk name (e.g., name-1)
  • Next by Date: RE: *****SPAM***** Re: Errors on Apple Applescript website
  • Previous by thread: Re: Ownership and permissions
  • Next by thread: Strange iDisk name (e.g., name-1)
  • Index(es):
    • Date
    • Thread