• 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: Paul Thompson <email@hidden>
  • Date: Mon, 30 Jan 2006 14:30:07 -0500


On 30-Jan-06, at 1:47 PM, Mark J. Reed wrote:

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>

Hi Mark,

I'm not quite sure what you meant with the last part, so just to make sure I'm doing it right, do you mean it should be written like this:


-- this is a handler it calls the writefile below with theText variable and printersconf variable
do shell script "touch" + "thefile"
writeFile(theText, printersconf)


  Thank you,

  Paul

_______________________________________________
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: "Mark J. Reed" <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>)
 >Re: Permissions problem with script (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Permissions problem with script
  • 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