• 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
Using AppleScript to Detect Nul Characters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using AppleScript to Detect Nul Characters


  • Subject: Using AppleScript to Detect Nul Characters
  • From: Bernardo Hoehl <email@hidden>
  • Date: Sat, 30 Apr 2005 11:57:24 -0300

Hi Folks,



I have this Applescript studio application I use for sending out emails, it uses the Postfix daemon buit into my Mac Os X box, and a 3 SMTP servers (out of hundreds I send emails to) were refusing my messages replying "host smtp2.braspress.com.br[200.187.158.140] said: 550 Requested action not taken: NUL characters are not allowed. (in reply to end of DATA command)"

As a novice high-level programmer, I did not know that every character is represented by a hex value, and that I had two "gremlins" in my Template text (used to send out the emails after text manipulation), I mean, I had two hex values = 00.

A experienced Objective C programmer, friend of mine, taught me the what these Nul characters are and helped me removing these from my text. I was using a text application that did not show me the little gremlins.

As I move on forward with my learning, I am wondering if there is an "AppleScript way" I can use to detect these Gremlins, and so create a routine in my application to check the consistency of any text I use for sending out emails.

I thank you for your comments,

Bernardo Höhl
Rio de Janeiro - Brazil
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Using AppleScript to Detect Nul Characters
      • From: kai <email@hidden>
    • Re: Using AppleScript to Detect Nul Characters
      • From: Gnarlodious <email@hidden>
    • Re: Using AppleScript to Detect Nul Characters
      • From: Le Stang Jean-Baptiste <email@hidden>
  • Prev by Date: Re: [OT] institute for backup trauma
  • Next by Date: Help with droplet
  • Previous by thread: Automator mailing lists!
  • Next by thread: Re: Using AppleScript to Detect Nul Characters
  • Index(es):
    • Date
    • Thread