• 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
Coerce string to string!?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Coerce string to string!?


  • Subject: Coerce string to string!?
  • From: JJ <email@hidden>
  • Date: Wed, 13 Feb 2002 18:47:56 +0100

I'm missing some basic concept here:

<START SCRIPT>

set Original_String to "String"
set | 1 string list | to {"String"}

| 1 string list |'s item 1 = Original_String
-- true (OK)

repeat with i in | 1 string list |
class of i
--> string (OK)
class of Original_String
--> string (OK)

i = Original_String
--> false (??????????)

(i as string) = Original_String
-- true (OK)
end repeat

</END SCRIPT>

So, AS 1.3.7 says:

i ("String"), wich is a string, is not equal to Original_String ("String"),
wich is a string, too.

Why?

JJ
_______________________________________________
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: Coerce string to string!?
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Since Apple Listens to this List... [Case Statements]
  • Next by Date: Re: Since Apple Listens to this List... [Case Statements]
  • Previous by thread: Store script as read-only?
  • Next by thread: Re: Coerce string to string!?
  • Index(es):
    • Date
    • Thread