keychain export via Applescript
http://discussions.apple.com/thread.jspa?messageID=12224599�
it seems to run fine but aborts with a '+Keychain Scripting got an error: There is not enough memory available to use the specified item. number -25301+' error about half-way through my 183 keychain entries.
I tried to modify the script (see below) and have it open the output file first and append single entries to it on each iteration but this returns
+Can’t get application \"Macintosh HD:System:Library:ScriptingAdditions:Keychain Scripting.app:\"." number -1728 from application "Macintosh HD:System:Library:ScriptingAdditions:Keychain Scripting.app:+
set osXKeychainScriptingPath to ¬
"Macintosh HD:System:Library:ScriptingAdditions:Keychain Scripting.app:" -- one line
set theSecuridPIN to {}
tell application "Keychain Scripting" to launch
tell application "Keychain Access" to launch
tell application "Finder"
open for access file (((path to desktop folder) as text) & "Passwords") with write permission
set theFile to result
using terms from application "Keychain Scripting"
tell application osXKeychainScriptingPath
set KeyList to every key of current keychain
repeat with aKey in KeyList
set theSecuridPIN to ((name of aKey) & tab & ¬
(account of aKey) & tab & (password of aKey) & tab & (comment of aKey) & tab & (description of aKey) & return) as text
write theSecuridPIN to theFile starting at eof
log (name of aKey) as text
end repeat
end tell
end using terms from
close access theFile
end tell
tell application "Keychain Scripting" to quit
tell application "Keychain Access" to quit
macbook pro, Mac OS X (10.6.5)