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

Re: OS 10.4.2: Keychain scripting "Application not running" error


  • Subject: Re: OS 10.4.2: Keychain scripting "Application not running" error
  • From: John Baltutis <email@hidden>
  • Date: Sun, 24 Jul 2005 15:18:14 -0700

On 07/24/05, Roy Whelden <email@hidden> wrote:


> Message: 1
> Date: Sun, 24 Jul 2005 13:30:05 -0700
> From: Roy Whelden <email@hidden>
> Subject: Re:OS 10.4.2: Keychain scripting "Application not running"
>	error
> To: email@hidden
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
>
> John,
>
> There is a recently posted page at
>
> http://docs.info.apple.com/article.html?artnum=301858
>
> which provides a script which actually works to retrieve passwords.
>
> Very touchy, though, and about six times the length of the script I
> used with Keychain scripting in Panther.

This one's simple and runs in Tiger 10.4.2 (isn't touchy or long). It's
what triggered my bug report while beta-testing Tiger. It builds a text
file containing the login keychain's name, account, and password. I haven't
look at the Apple example, but my previous response concerning explicitly
launching Keychain Scripting and Keychain Access, in that order, before
calling for the password was based on information from the engineering
folks in response to my bug report.

<srpt>
set osXKeychainScriptingPath to ¬
	(path to scripting additions from system domain as Unicode text) ¬
		& "Keychain Scripting.app:" -- one line
set theSecuridPIN to {}

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

using terms from application "Keychain Scripting"
	tell application osXKeychainScriptingPath
		set KeyList to every Internet key of current keychain
		repeat with aKey in KeyList
			set theSecuridPIN to theSecuridPIN & (name of aKey) & ¬
				(account of aKey) & (password of aKey) & return
		end repeat
	end tell
end using terms from

tell application "Keychain Scripting" to quit
tell application "Keychain Access" to quit

tell application "Finder"
	open for access file (((path to desktop folder) as text) & "Passwords")
with write permission
	set theFile to result
	write theSecuridPIN to theFile
	close access theFile
end tell
<end srpt>
 _______________________________________________
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

  • Prev by Date: Re: how can script bundles store extra stuff?
  • Next by Date: Re: how can script bundles store extra stuff?
  • Previous by thread: Re:OS 10.4.2: Keychain scripting "Application not running" error
  • Next by thread: Re: OS 10.4.2: Keychain scripting "Application not running" error
  • Index(es):
    • Date
    • Thread