• 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
AppleScript, Login hook or login item
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AppleScript, Login hook or login item


  • Subject: AppleScript, Login hook or login item
  • From: Paul Thompson <email@hidden>
  • Date: Thu, 15 Sep 2005 18:28:26 -0400

  Hi everyone,

  I am trying to create a login hook using applescript.  It might be more practical to run it as a login item.  I need my script to do two things.  The first is to mount an smb volume on the user's desktop after they authenticate so they have access to that.  I have tested that part of the script, and it works fine.  This is how that part looks:
on run
    try
        mount volume "smb://server-employee/Home Directories"
    end try
end run

It takes the username the user logs in with, and asks for a password to authenticate.

The next part of that is to take the user name and password that they just used, and authenticate to the windows print server.  The server is called server-print, and I need to authenticate to 4 different queues.  The file that contains the authentication for the local user lives in /private/etc/cups and is called "printers.conf"  This is what part of it looks like:

<DefaultPrinter ArtandDes1>
Info ArtandDes1
Location UCC
DeviceURI smb://username:password@UCC/SERVER-PRINT/ArtandDes1
State Idle
Accepting Yes
JobSheets

Does anybody have an idea for how to script this so when a user logs enters the information in the above script, it would take their user name and password and plunk them in (red and green for this example)so it's their authentication that is used when they print?  Does anyone know where the information for printers would be stored for mcx clients?  

  Any help would be greatly appreciated.

  Thank you,

  Paul

The
 _______________________________________________
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: AppleScript, Login hook or login item
      • From: Adam Wuellner <email@hidden>
  • Prev by Date: Re: Get the "last" folder...
  • Next by Date: Re: Need help from a Filemaker Ninja...
  • Previous by thread: Re: convert AS syntax to CLI
  • Next by thread: Re: AppleScript, Login hook or login item
  • Index(es):
    • Date
    • Thread