• 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: Auto Login to server using OS 9.1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Auto Login to server using OS 9.1


  • Subject: Re: Auto Login to server using OS 9.1
  • From: "email@hidden" <email@hidden>
  • Date: Thu, 03 May 2001 16:55:33 -0500

on 5/3/2001 3:06 PM, Paul Fisher at email@hidden wrote:

> I am trying to automatically log into a server during startup, but with
> keychain access in OS 9.1 this is nearly impossible without using guest access
> to my server, something i don't want to do. Apple says this is possible to
> get around using an applescript that fills in the username and password and
> presses "OK". Does anyone have suggestions on how i would do this?
>
> i was thinking of putting an alias to the server in my startup folder and then
> have a script run to fill in the password and then click "ok." or should the
> script itself find the server?
>
> thanks for the help

Save this as a stand-alone applet, place it in your Startup Items folder,
and run it. (Watch for line wraps ;)

-- begin script
property theKeyChain : ""
property thePW : ""

if theKeyChain is "" then
set theKeyChain to text returned of ,
(display dialog "Enter the name of the keychain to unlock:" default
answer "")
end if

if thePW is "" then
set thePW to text returned of ,
(display dialog "Enter the password for " & theKeyChain & ":"
default answer "")
end if

-- unlock the keychain
tell application "Keychain Scripting"
try
unlock keychain theKeyChain with password thePW
on error errmsg
notify with alert "Unable to unlock keychain \"" & theKeyChain &
"\": " & errmsg
end try
quit
end tell

-- wait until Keychain Scripting quits before doing options
tell application "Finder"
repeat until name of every process does not contain "Keychain Scripting"
end repeat
end tell
-- end script


References: 
 >Auto Login to server using OS 9.1 (From: "Paul Fisher" <email@hidden>)

  • Prev by Date: Re: Is there a list of commands that work with the Finder (Desktop?) in Mac OS X
  • Next by Date: Re: Auto Login to server using OS 9.1
  • Previous by thread: Auto Login to server using OS 9.1
  • Next by thread: Re: Auto Login to server using OS 9.1
  • Index(es):
    • Date
    • Thread