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

Re: TIDs Inquiry


  • Subject: Re: TIDs Inquiry
  • From: Paul Berkowitz <email@hidden>
  • Date: Sun, 10 Nov 2002 18:47:57 -0800

On 11/10/02 6:34 PM, "Ken Fleisher" <email@hidden> wrote:

> You've shown us the handlers, but you haven't shown us how you call the
> handlers. I'd bet that the value of aDelim is not a return when you call the
> handler in example a. Put a display dialog at the beginning of getTextItems()
> and show the value of aDelim. You might want to use and if-then so show
> something else if it does contain return:
>
> if aDelim = return then
> display dialog "It's a return!"
> else
> display dialog aDelim
> end if
>
> If that's not the answer, then post the code that you use to call the handlers
> and we'll see from there.

If that's a linefeed, as I'm sure it is, you're not going to see anything,
or maybe a silly question mark. Even worse for display dialog if it's
Unicode. Better is


if aDelim = return then
display dialog "It's a return!"
else
set aDelim to ASText(aDelim)
display dialog aDelim & " (ASCII character " & (ASCII number aDelim) &
")"
end if

on AsText(str) -- courtesy A Knapp
--coerce Unicode or other text to styled string to plain text
try
return (((str as string) as record)'s <<class ktxt>>)
end try
return str -- if plain text to begin with
end AsText
--
Paul Berkowitz
_______________________________________________
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.

References: 
 >Re: TIDs Inquiry (From: Ken Fleisher <email@hidden>)

  • Prev by Date: Re: TIDs Inquiry
  • Next by Date: Re: TIDs Inquiry
  • Previous by thread: Re: TIDs Inquiry
  • Next by thread: Re: TIDs Inquiry
  • Index(es):
    • Date
    • Thread