Odd result parsing keychain password
Odd result parsing keychain password
- Subject: Odd result parsing keychain password
- From: Gnarlodious <email@hidden>
- Date: Sat, 06 Dec 2003 21:21:15 -0700
In the transition to 10.3 this stopped working.
Where in 10.2 line:
set thePassword to (characters 1 thru ((offset of (ASCII character 0) in
thePassword) - 1) of thePassword) as text
returned "password"
the same line now returns "p:a:s:s:w:o:r:d"
To bring the password up to 10.3 standards I need to say:
set thePassword to (text 1 thru ((offset of (ASCII character 0) in
thePassword) - 1) of thePassword)
which returns "password"
Any insight into this change?
--Gnarlie
--------
property keyNum : 1
tell application "Keychain Scripting"
unlock current keychain
set theAccount to account of AppleShare key keyNum of current keychain
set theServer to server of AppleShare key keyNum of current keychain
set theVolume to volume of AppleShare key keyNum of current keychain
set thePassword to password of AppleShare key keyNum of current keychain
end tell (**)
set ServerFolder to "afp://" & theServer & "/" & theAccount
set thePassword to (text 1 thru ((offset of (ASCII character 0) in
thePassword) - 1) of thePassword)
--set thePassword to (characters 1 thru ((offset of (ASCII character 0) in
thePassword) - 1) of thePassword) as text
tell application "Finder" to mount volume ServerFolder as user name
theAccount with password thePassword
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.