Re: osascript crashed and burned getting raw source of huge email attachments
Re: osascript crashed and burned getting raw source of huge email attachments
- Subject: Re: osascript crashed and burned getting raw source of huge email attachments
- From: Walter Ian Kaye <email@hidden>
- Date: Sat, 20 Mar 2004 00:17:55 -0800
At 11:30p -0800 03/19/2004, fortepianissimo didst inscribe upon an
electronic papyrus:
>Where *exactly* does the failure occur? (Which line of the program?)
>Is it a Mail.app failure, or can you reproduce it by getting the same
>large data from elsewhere (such as from a file)?
I'm not sure if it's AppleScript's error or Mail's error - but my hunch
is the former. The odd thing is the same script, when run in Script
Editor, it works fine (get the raw source from the selected mail and
dump it as string to a file). But when run using osascript, it seg
fault.
I've tested with several arrangement of different picture attachments,
and so far it seems that if the size is over 2.3MB I got a seg fault.
Can you answer my first question? If you need to, stick in a logging
function and log each line. That will let you find out where it dies.
What made it worse, is that whenever a crash occurs, the script itself
is corrupted somehow - subsequent run using the same script will almost
always produce seg fault.
(why on earth the script itself needs to be modified whenever it's run?
is it ok to chmod u-w on the file? will I still get the same
functionality from the script?)
Sure, it's ok to do that.
See recent thread 'Re: "Save changes to script" when it terminates?'
-boo
_______________________________________________
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.