• 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: Permissions problem with script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Permissions problem with script


  • Subject: Re: Permissions problem with script
  • From: "Mark J. Reed" <email@hidden>
  • Date: Wed, 25 Jan 2006 10:51:36 -0500

One more suggestion:

On 1/25/06, Paul Thompson <email@hidden> wrote:
> -- this copies the tmp file back to the /etc/cups folder
> do shell script ("cp /tmp/printers.conf /etc/cups/printers.conf")
> with administrator privileges

BEFORE the above line, it would be a really good idea to make a backup
copy of the existing printers.conf, before applying your changes:

do shell script ("cp /etc/cups/printers.conf
/etc/cups/printers.conf.pre-userpass") with administrator privileges

Otherwise a minor error in your script could leave you with an
unusable configuration and no way to revert.


--
Mark J. Reed <email@hidden>
 _______________________________________________
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

References: 
 >Permissions problem with script (From: Paul Thompson <email@hidden>)

  • Prev by Date: Re: Permissions problem with script
  • Next by Date: monitoring keyboard keys
  • Previous by thread: Re: Permissions problem with script
  • Next by thread: monitoring keyboard keys
  • Index(es):
    • Date
    • Thread