• 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
AppleScript mystery
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AppleScript mystery


  • Subject: AppleScript mystery
  • From: David Crowe <email@hidden>
  • Date: Tue, 20 Apr 2004 22:49:01 -0700

Can anybody explain why:

set theString to "abc def"
repeat with aCharacter in theString
display dialog "> " & (class of aCharacter)
return
end repeat

Produces the output "> string", yet:


set theString to "abc def"
repeat with aCharacter in theString
display dialog (class of aCharacter)
return
end repeat

Produces the output "TEXT"?

- David Crowe
_______________________________________________
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: AppleScript mystery
      • From: Emmanuel <email@hidden>
    • Re: AppleScript mystery
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Multi-line do shell script. How?
  • Next by Date: Re: AppleScript mystery
  • Previous by thread: Re: Multi-line do shell script. How?
  • Next by thread: Re: AppleScript mystery
  • Index(es):
    • Date
    • Thread