• 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
open for access with administrative privileges
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

open for access with administrative privileges


  • Subject: open for access with administrative privileges
  • From: Mark Butler <email@hidden>
  • Date: Sun, 20 Nov 2005 19:08:14 -0800

Evening everyone,

What is the best way to do this without creating a bunch of authentications and being annoying??

What I normally do is use this handler to write to a file...

on writeFile(theFilePath, thecontents)
set f to (open for access alias theFilePath with write permission) -- edited
write thecontents to f
close access f
end writeFile

What I need to do is to write to a file that needs administrative privileges... and might not exist..

Whats the cleanest easiest way to do this without a bunch of try loops or do shell scripts, and without authenticating more than once.

Mark
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Finding a location in a text file
  • Next by Date: Re: Satimage Regex
  • Previous by thread: Re: Satimage Regex
  • Next by thread: URL Access Scripting
  • Index(es):
    • Date
    • Thread