• 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: remember in keychain
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
email@hidden

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

iChat email@hidden


 _______________________________________________
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

References: 
 >remember in keychain (From: tom evans <email@hidden>)
 >Re: remember in keychain (From: "parag vibhute" <email@hidden>)
 >Re: remember in keychain (From: Peter Baxter <email@hidden>)

  • Prev by Date: Re: Dumb Finder scripting question
  • Next by Date: Address Book Custom Date
  • Previous by thread: Re: remember in keychain
  • Next by thread: Re: remember in keychain
  • Index(es):
    • Date
    • Thread