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 02:05:59 -0800
At 01:31a -0800 03/20/2004, fortepianissimo didst inscribe upon an
electronic papyrus:
>Where *exactly* does the failure occur? (Which line of the program?)
It's this line:
set theSrc to the source of theMsg
Again it only crashes when it's run using osascript. Thanks.
OK. What happens if you do this?:
set theFN to "/tmp/src.txt"
set sourceF to (open for access POSIX file theFN with write permission)
set eof sourceF to 0 --empty anything previously in the file
tell application "Mail"
set theSel to selection
set theMsg to (item 1 of theSel)
write (source of theMsg) to sourceF --no intermediate variable
end tell
close access sourceF
_______________________________________________
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.