• 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
Scripting and printing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Scripting and printing


  • Subject: Scripting and printing
  • From: Paul Thompson <email@hidden>
  • Date: Tue, 29 Nov 2005 15:09:00 -0500

  Greetings everyone,

I am trying to write a script that will prompt users for a name and password, and then take those two pieces of information and drop them into a file in the username and password places. The file resides in /private/etc/cups/ It is the printers.conf file, and is the one that is written to by the Printer Setup Utility. This is what that file looks like:

# Printer configuration file for CUPS v1.1.23
# Written by cupsd on Wed Oct 26 16:33:57 2005
<DefaultPrinter ArtandDes1>
Info ArtandDes1
Location Ucc
DeviceURI smb://username:password@Ucc/Server-Print/ArtandDes1
State Idle
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
<Printer CompLab1>
Info CompLab1
Location Ucc
DeviceURI smb://username:password@Ucc/Server-Print/CompLab1
State Idle
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
<Printer CompLab2>
Info CompLab2
Location Ucc
DeviceURI smb://username:password@Ucc/Server-Print/CompLab2
State Idle
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>


Does anyone have a script that they would be willing to share? I have a rough idea how how it's suppose to be, but I'm in way over my head here, and I need some help.


  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: Scripting and printing
      • From: Mark Butler <email@hidden>
  • Prev by Date: Re: Problem with GUI Scripting
  • Next by Date: Re: Shell Script Failure
  • Previous by thread: Re: Shell Script Failure
  • Next by thread: Re: Scripting and printing
  • Index(es):
    • Date
    • Thread