Re: Permissions problem with script
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