Re: Odd result parsing keychain password
Re: Odd result parsing keychain password
- Subject: Re: Odd result parsing keychain password
- From: Graff <email@hidden>
- Date: Sun, 07 Dec 2003 00:20:17 -0500
"characters 1 thru x" returns the individual characters as a list,
while "text 1 thru x" returns a text string of those characters. I'm
willing to bet that somewhere else in the script you changed the
AppleScript text-item delimiters to ":" so when you coerced the list of
characters into a text string it placed the ":" between each letter.
This is why you should always grab the text-item delimiters before you
use them, save them into a variable, and then reset them when you are
done using them. You avoid these kind of troubles down the line.
- Ken
On Dec 6, 2003, at 11:21 PM, Gnarlodious wrote:
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?
_______________________________________________
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.