• 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: Why won't this parse?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why won't this parse?


  • Subject: Re: Why won't this parse?
  • From: David Graham <email@hidden>
  • Date: Thu, 10 May 2001 11:32:53 -0700

At 10:32 AM -0700 5/10/01, Paul Berkowitz wrote:
>But you don't want ASCII number of anything. You want the character " ".
>
>That's
>
> ASCII character 32 = " "
>
>Since you wrote 'number' instead of 'character' you got
>
> ASCII number of 32 = ASCII number "3" = 51
>
>and the rest of your script errored, since using {51} as AppleScript's text
>item delimiters in a string containing no substring "51" is going to give
>you only one text item (the whole string).

This stuff is enlightening, however it still doesn't fix the problem. No matter whether I set the TIDs to {" "} or {space} I still have the same problem. Are you saying that I can't reliably use the space character as a TID?

... and why does this work when inserted in the same script

[...]

return text item 1 of thisEntry
--> "alias"

return text item 2 of thisEntry
--> "PWI_AAA"

return text item 3 of thisEntry
--> "email@hidden"


Also ...


If I comment out this line:

-- set strType to text item 1 of thisEntry

... then this line which was returning an error before actually works now:

set strNickName to text item 2 of thisEntry
return strNickName
--> "PWI_AAA"

And why the hell would I be able to get the value with a return statement and not "set" the value to a variable?

[...]
set strType to text item 1 of thisEntry
return text item 2 of thisEntry
--> "PWI_AAA"

!!! And here's the weirdest thing of all !!! This works just fine

[...]
set strType to text item 1 of thisEntry
set strNickName to text item 2 of thisEntry
return strNickName
--> "PWI_AAA"

... and when you take the "return" statement out you get a dialog:

Can't get text item 2 of "".


*&^%$%^&!!!!!

Is this a rare bug or have I gone insane?


--


:: dmgraham information solutions ... database, web & more ::

david m graham
10353 san diego mission rd., #107c, san diego, ca 92108
619.322.9698
http://www.dmgraham.n3.net


References: 
 >Re: Why won't this parse? (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Why won't this parse?
  • Next by Date: Re: CMYK in QuarkXpress
  • Previous by thread: Re: Why won't this parse?
  • Next by thread: Re: Why won't this parse?
  • Index(es):
    • Date
    • Thread