Thanks. This appears to work OK for displaying items from the command
line.
Unfortunately it always sends it's output to stderr which makes it
harder to
catch the output and extract the actual password text from it. Grrrr.
Not hard; just redirect stderr to stdout. (I'm not sure why it does
this either; will try to find out.)
security find-generic-password -a thecloud -g 2>&1
A little post-processing with sed or awk could then be used to extract
the password:
security find-generic-password -a thecloud -g 2>&1 | grep password |
sed -e "s/password: \"//" -e "s/\"//"
AppleScript may be a workable alternative as it looks like it might be
easier to get ahold of the actual password text.
Scott
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Apple-cdsa mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/apple-cdsa/email@hidden