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: fortepianissimo <email@hidden>
- Date: Fri, 19 Mar 2004 22:31:23 -0800 (PST)
I'd really like someone from Apple to take a look at this problem. I'm
willing to send a message with attachment that proved (at least on two
different Mac/Panther) to be able to crash osascript to whomever
interested. Please send me email if you'd like to take a look at the
test message and the simple testGetSrc.scpt.
(BTW I'm the developer of JunkMatcher - I knew this problem from
reports of several users)
Thank you.
>
I don't know if anyone has experienced this before. This can be
>
reliably reproduced by:
>
1. Sending myself an email with big attachment - size >= 3MB should
>
work.
>
2. Get the message in Mail.app, and select it.
>
3. Save the following script in Script Editor to a file
>
"testGetSrc.scpt":
>
-=-=-=- CODE STARTS -=-=-=-
>
set theFN to "/tmp/src.txt"
>
tell application "Mail"
>
set theSel to selection
>
set theMsg to (item 1 of theSel)
>
--set theSize to message size of theMsg
>
set theSrc to the source of theMsg
>
end tell
>
-- save the source to sourceF
>
set sourceF to (open for access POSIX file theFN with write
permission)
>
set eof sourceF to 0 --empty anything previously in the file
>
write theSrc as string to sourceF
>
close access sourceF
>
-=-=-=- CODE ENDS -=-=-=-
>
4. run the script using osascript under Terminal.app:
>
osascript testGetSrc.scpt
>
5. Get error "Segmentation fault".
>
Could anyone point me what's going on here? Thanks.
__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html
_______________________________________________
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.