Re: Modifying incoming mail subject
Re: Modifying incoming mail subject
- Subject: Re: Modifying incoming mail subject
- From: Michaël Grünewald <email@hidden>
- Date: Sat, 29 Dec 2007 01:17:09 +0100
Hi again,
There is many enthusiastic contributors here that paid attention to
the problem exposed, it's a real pleasure to thank them here.
By dwelling the ways you (or they) shown to me, I began to experience
very displeasing effects: recurrent bus errors. For this one, I do
not expect anyone can help me ... (It seems to me that the use of
dialog generates somewhat random crashes of the Mail application.)
Le 28 déc. 07 à 04:07, Mark J. Reed a écrit :
What are you setting "theMessages" to?
And you might consider using "display dialog" instead of "say", unless
of course you chose the latter due to a visual impairment.
Has: it would seem that the best way to integrate appscript
functionality with the shell would be to provide a cli that can be
called from the shell, rather than extending the shell itself.
For the few times the dialog displays nicely and does not core dump,
it tells me that I process a list with one element (in the case I
manually apply rules on an item), but the loop is not entered (I have
no dialog and no Mail application crash either.) This rather puzzles me.
-- EXCERPT
using terms from application "Mail"
on perform mail action with messages theMessages for rule theRule
tell application "Mail"
display dialog count of theMessages
display dialog class of theMessages
display dialog (count of theMessages)
set text item delimiters to "[Caml-list] "
repeat with eachMessage in theMessages
display dialog "This goes on and on"
set theSubject to the subject of eachMessage
set theAnswer to ""
repeat with thePart in text items of theSubject
set theAnswer to theAnswer & thePart
end repeat
set subject of eachMessage to theAnswer
end repeat
end tell
end perform mail action with messages
end using terms from
-- EXCERPT
Tia,
Micha
___________________________________________________________________________
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.
http://fr.mail.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden