• 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: Mon, 30 Jan 2006 13:47:49 -0500

On 1/30/06, Paul Thompson <email@hidden> wrote:
> -- set permissions back on the file
> do shell script ("chown root:lp /etc/cups/printers.conf") with
> administrator privileges

Still don't need to do that.

>    When I run the script, it executes as it should, but the file that
> gets written, when you do a get info on it, is listed as a Text
> Document which text edit can open, while on another machine the
> original printers.conf file is listed as a Document which can be
> opened through the terminal.  Any Idea how I would reset the file so
> that it would be a unix file

That shouldn't matter at all to CUPS.  But you could try precreating
the file with a UNIX command so it gets UNIXy attributes.  Inserting
this line:

do shell script "touch " + quoted form of thefile

as the first line of writeFile() would probably do the trick.



--
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

  • Follow-Ups:
    • Re: Permissions problem with script
      • From: Paul Thompson <email@hidden>
References: 
 >Permissions problem with script (From: Paul Thompson <email@hidden>)
 >Re: Permissions problem with script (From: "Mark J. Reed" <email@hidden>)
 >Re: Permissions problem with script (From: Paul Thompson <email@hidden>)

  • Prev by Date: Where can I get more info?
  • Next by Date: Re: Permissions problem with script
  • Previous by thread: Re: Permissions problem with script
  • Next by thread: Re: Permissions problem with script
  • Index(es):
    • Date
    • Thread