Re: TIDs Inquiry
Re: TIDs Inquiry
- Subject: Re: TIDs Inquiry
- From: Ken Fleisher <email@hidden>
- Date: Sun, 10 Nov 2002 21:34:21 -0500
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.
Ken Fleisher
>
on readFile(file_path)
>
try
>
open for access file file_path without write permission
>
set the_retrieved_info to read file (file_path)
>
close access file file_path
>
return the_retrieved_info
>
on error
>
close access file file_path
>
return 0
>
end try
>
end readFile
>
>
on getTextItems(str, aDelim)
>
set savedTextItemDelimiters to AppleScript's text item delimiters
>
set AppleScript's text item delimiters to aDelim
>
set textItemsList to text items of str
>
set AppleScript's text item delimiters to savedTextItemDelimiters
>
return textItemsList
>
end getTextItems
_______________________________________________
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.