• 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: Newbie scripter with OS X question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie scripter with OS X question


  • Subject: Re: Newbie scripter with OS X question
  • From: hciR nellA <email@hidden>
  • Date: Thu, 5 Apr 2001 12:34:13 -0800

-- this is what i am doing, i did end up loggin out of X before it worked.

this script in the startup items folder of the classic system folder

on UnlockKeyChain()

try
with timeout of 60 seconds
set MyPassword to "pass" --Change this password to your keychain password
tell application "Keychain Scripting"
set NumberOfKeychains to count keychains
repeat with KeychainNumber from 1 to NumberOfKeychains
set KeychainName to name of keychain KeychainNumber
try
unlock keychain KeychainName with password MyPassword
on error
return false
end try
end repeat
return true
end tell
end timeout
on error
return false
end try
end UnlockKeyChain


On Tuesday, April 3, 2001, at 01:25 PM, <email@hidden> wrote:

I'm attemping to write a script so that I can unlock my "Classic" keychain
automatically when I log into OS X. I then want to launch a couple of apps and
another script, all of which rely on this script to open the keychain. I've
gotten it to work just fine, with one exception. I need this script (as well
as the others) to wait until Classic has finished loaded before they attempt to
do their thing. I can do that, but need to be able to tell this script to
check to see if the truble process is active. That's where I'm getting stuck.
Any suggestions or ideas? I basically want the script to wait until that
process is active (and I can't point it to an application since there isn't a
"classic" application, just the classic startup app which won't work) before
continuing.

- hcir
mailto:email@hidden
Made with a Mac!


References: 
 >Newbie scripter with OS X question (From: <email@hidden>)

  • Prev by Date: Re: Admin
  • Next by Date: Re: When did Remote Access Commands get depreciated?
  • Previous by thread: Newbie scripter with OS X question
  • Next by thread: File manipulating with FMPro fields
  • Index(es):
    • Date
    • Thread