• 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: Bad Characters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bad Characters


  • Subject: Re: Bad Characters
  • From: "Mark J. Reed" <email@hidden>
  • Date: Thu, 16 Oct 2008 10:09:39 -0400

Luther Fuller wrote:
In my original script, I commented: "-- or use nullChar = "".

I'm not seeing that behavior, Luther. No single character returns true when compared to "" OMM.


Test script:

set controlChars to {}

repeat with cc from 0 to 31
   set end of controlChars to character id cc
end repeat

repeat with cc from 127 to 159
   set end of controlChars to character id cc
end repeat

set emptyString to ""
set emptyCount to 0
repeat with testChar in controlChars
   if testChar = emptyString then
       set emptyCount to emptyCount + 1
   end if
end repeat

emptyCount

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Bad Characters
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Bad Characters (From: Luther Fuller <email@hidden>)
 >Re: Bad Characters (From: "Mark J. Reed" <email@hidden>)
 >Re: Bad Characters (From: Luther Fuller <email@hidden>)
 >Re: Bad Characters (From: "Mark J. Reed" <email@hidden>)
 >Re: Bad Characters (From: "Mark J. Reed" <email@hidden>)
 >Re: Bad Characters (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Bad Characters
  • Next by Date: Re: Bad Characters
  • Previous by thread: Re: Bad Characters
  • Next by thread: Re: Bad Characters
  • Index(es):
    • Date
    • Thread