• 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: Odd result parsing keychain password
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Odd result parsing keychain password
      • From: Paul Berkowitz <email@hidden>
    • Re: Odd result parsing keychain password
      • From: Gnarlodious <email@hidden>
References: 
 >Odd result parsing keychain password (From: Gnarlodious <email@hidden>)

  • Prev by Date: Re: Odd result parsing keychain password
  • Next by Date: Re: Odd result parsing keychain password
  • Previous by thread: Re: Odd result parsing keychain password
  • Next by thread: Re: Odd result parsing keychain password
  • Index(es):
    • Date
    • Thread