Re: Script to insert SE2 script in Eudora message
Re: Script to insert SE2 script in Eudora message
- Subject: Re: Script to insert SE2 script in Eudora message
- From: John Delacour <email@hidden>
- Date: Thu, 6 Mar 2003 21:31:18 +0000
- Mac-eudora-version: 6.0a9
At 7:06 pm +0100 6/3/03, Emmanuel wrote:
1. I think that "return beep" may be unsafe under OSX. I don't know
why nor when , but this construction crashes. I loved returning beep
but now I advise to write 4 lines: "if ... end/beep/return/end if"
(or 2, see below).
2. It is not safe to compare s to "". This will fail if s is longer
than 32 KB. One should rather write:
---------------------
if s's length is 0 then ...
---------------------
Interesting. That will be important for Paul and has to remember
when they switch to Eudora. I've rarely written a script over 5K.
It's a good habit to get into though; I wasn't aware of the problem.
I haven't crashed yet with return parameter, so I'll keep doing it
and watch out.
You can modify it to get just the selection or to insert into an
inferior mailer.
I don't have an inferior mailer, but I have a superior mailer, and I
could modify your script for it.
--------------------- autotested !!!
tell application "Smile"
Yes Emmanuel, I was trying to show how to get rid of all the
gremlins and things from the script in SCRIPT EDITOR 2, which is new
and presents a whole set of new problems. The
Unless I'm missing something Eudora seems to care little about styled text.
I think you _are_ missing something, but I don't quite understand
what you're saying.
If you do this in SE2:
get the contents of document 1
tell application "Eudora" to set selected text to the result
You'll end up with nasty little oblongs at the end of every line.
JD
_______________________________________________
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.