• 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: Keychain scripting & Tiger/10.4: "Application not running" error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Keychain scripting & Tiger/10.4: "Application not running" error


  • Subject: Re: Keychain scripting & Tiger/10.4: "Application not running" error
  • From: John Baltutis <email@hidden>
  • Date: Thu, 23 Jun 2005 11:34:00 -0700

On 06/23/05, email@hidden wrote:
>
> Like a couple of other posters to this list (John Baltutis,
> "Application not running error", 8-May-05; Gnarlodious, "Tiger:
> Keychain Scripting works? Can't get password...", 2-May-05),
> upgrading to Mac OS X 10.4 (Tiger) has broken my Keychain Access
> scripts. Using Keychain Access, I can access all the properties of a
> key, _except_ the password! In the following script, the first line
> works fine, but the second line returns the error "Keychain Scripting
> got an error: Application isn't running."
>
>
>    tell application "Keychain Scripting" to set theKey to generic key
> 1 of keychain "login.keychain" of application "Keychain Scripting"
>
>    tell application "Keychain Scripting" to set thePassword to
> password of theKey
>
>    -->Keychain Scripting got an error: Application isn't running.
>
> This worked with no problem in Mac OS X 10.3.x. There seems to be a
> bug in 10.4 whereby any attempt to access the 'password' property of
> a key results in the above error.
>
> My questions are:
>
>    -has anyone figured out a way around this?

Yes. See the discussion at:
<http://discussions.info.apple.com/webx?email@hiddennsJStM.1@.68addd0b>.
Basically, you need to explicitly launch Keychain Scripting and Keychain
Access, in that order, before calling for the password:

	tell application "Keychain Scripting" to launch
	tell application "Keychain Access" to launch

If you reverse the order, the error returns.
>
>    -has anyone filed a bug report with Apple?

Yep. Engineering reported that it's a known problem and is under investigation.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Keychain scripting & Tiger/10.4: "Application not running" error
      • From: Stephen Jonke <email@hidden>
  • Prev by Date: Mount volume flaky/broken in Tiger?
  • Next by Date: posix path of string
  • Previous by thread: Keychain scripting & Tiger/10.4: "Application not running" error
  • Next by thread: Re: Keychain scripting & Tiger/10.4: "Application not running" error
  • Index(es):
    • Date
    • Thread