osascript crashed and burned getting raw source of huge email attachments
osascript crashed and burned getting raw source of huge email attachments
- Subject: osascript crashed and burned getting raw source of huge email attachments
- From: fortepianissimo <email@hidden>
- Date: Thu, 18 Mar 2004 15:20:19 -0800 (PST)
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! Mail - More reliable, more storage, less spam
http://mail.yahoo.com
_______________________________________________
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.