Re: remember in keychain
Re: remember in keychain
- Subject: Re: remember in keychain
- From: Peter Baxter <email@hidden>
- Date: Wed, 19 Dec 2007 06:23:50 +1100
I meant to have one extra line in there: myScript.
tell application "Keychain Scripting" set myKey to "MacintoshHome" tell keychain 1 set chosenKey to the first key whose name is myKey as string set adminpwd to the password of chosenKey as string end tell end tell set myScript to "do shell script {\"echo\" & quoted form of " & adminpwd & " | sudo periodic monthly ;echo 'Periodic tasks performed'\"}" myScript
display dialog "The monthly, maintenance scripts have completed."
Peter Baxter
Music creates order out of chaos: for rhythm imposes unanimity upon the divergent, melody imposes continuity upon the disjointed, and harmony imposes compatibility upon the incongruous.
-- Yehudi Menuhin
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden