Re: Getting keychain unlocked during boot
Re: Getting keychain unlocked during boot
- Subject: Re: Getting keychain unlocked during boot
- From: Tod Hallberg <email@hidden>
- Date: Thu, 02 May 2002 08:26:43 -0500
- Organization: Monical Pizza Corporation
Doug.......
I don't have any experience with any of the apps you are talking about but.........
You should try putting all the apps you want to start into you script in the order you want them to start.
that way you can force the Mac OS into performing them in the order you specify.
something like this
--> begin script
tell application "Keychain Scripting" to unlock keychain "Keychain" with password "???"
delay 5 --or however long you want it to delay to be sure it finishes
tell application "Interarchy"
---do stuff here
end tell
tell application "NetPresenz"
---do stuff here
end tell
--> end script
hope this helps
tod
Doug McNutt wrote:
>
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.
_______________________________________________
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.