[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] scripting eudora within macperl



In article <mac-perl.v03020900b268ba9df127@[18.42.1.16]>, Ken Pierce
<kpierce@MIT.EDU> wrote:

>>Could we see the code that causes what you posted to break?

Two ideas:

> set field "" of message 0 to \"$msg\"

Is this the correct way to set the message text--set field ""?

Also: if your message contains quotation marks, then this is going to
throw off Eudora, because AppleScript will see them as terminating the
string which you are setting "" to. So, you'll need to escape them, maybe
$msg =~ s/"/\\"/g;

Also, I'm not sure how AS feels about multiple lines in a string--do you
need continuation characters, or some other mechanism?

I hope one of these helps.

If not, one more clarification request: how does it fail? Do you get an
error message from Eudora or MacPerl, or does it work except for a null
message? (In other words, I don't see anything blatantly wrong, so we'll
need the details to help further.)
-- 
__________________________________________________________________________

Jeff Clites                Online Editor           http://www.MacTech.com/
online@MacTech.com         MacTech Magazine
__________________________________________________________________________

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch