Getting keychain unlocked during boot
Getting keychain unlocked during boot
- Subject: Getting keychain unlocked during boot
- From: Doug McNutt <email@hidden>
- Date: Wed, 1 May 2002 16:32:39 -0600
This is what I'm trying to use in system 9.2 on a G4:
--> begin script
tell application "Keychain Scripting" to unlock keychain "Keychain" with password "???"
tell application "Finder"
repeat until name of every process does not contain "Keychain Scripting"
end repeat
end tell
--> end script
What I'm trying to do is get the only keychain unlocked before the Interarchy application gets loaded and executed at boot time. I really want Interarchy to come up, mount a couple of ftp disks, and synchrinize them while I walk away and do coffee and donuts elsewhere.
I have the Applescript as a compiled APPL in the system startup items folder. It's name is set so that it should be executed first. NetPresenz, MPW, Toolserver, Eudora come next and then Interarchy. What happens is that Finder goes merrily on the way to bringing up Interarchy which it in turn asks the keychain for a password. Keychain brings up a dialog for unlocking. (Why is it still locked?) I'm not there so the system hangs, generating several ftp failures, until I get back. When I return the keychain is in truth unlocked but Interarchy has stopped trying. Other startup items may and may not have done their thing.
Interarchy has a well developed scripting dictionary but I don't see how to tell it to unlock the keychain. I would turn the keychain off altogether except that Interarchy does not provide any other way to operate.
tell application finder
Would you please wait right where you are until this script finishes with its work
end tell
Naah. That hasn't a chance.
Would extending the script to let it load Interarchy help? It would be easier to write an MPW script to load Interarchy but we're getting all the way through loading MPW anyway and the keychain is still not unlocked. Is there any way the script can ask if the keychain is unlocked and wait until it is? Does the repeat function really loop or does it do a WaitNextEvent which allows the finder to go on loading applications? Are Applescripts given less priority at boot time than other APPLs?
I'm sure there must be a way but I'm too frustrated right now to fool with it. I need suggestions.
--
--> As a citizen of the USA if you see a federal outlay expressed in $billion then multiply it by 4 to get your share in dollars. <--
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.