Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Change subject of received emails in Mail.app' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Change subject of received emails in Mail.app
Authored by: hnhansen on Apr 04, '06 01:45:04PM
You said "It is not possible to get the script to dynamically retrieve the currently selected mailbox". Well, what about someting like this:

tell application "Mail"
	set theSelection to the selection
	return mailbox of item 1 of theSelection
end tell
This will return a reference to the mailbox of the selected message.

[ Reply to This | # ]
Change subject of received emails in Mail.app
Authored by: leenoble_uk on Apr 04, '06 02:20:43PM

You're welcome to try it but I'm sure I tore my hair out for days trying to get it to work and I'm certain I tried that. I can't stress enough for people not to try, it'll just waste your time, trust me. I think it is a bug in Mail as far as I recall. If the script works in 10.4 then maybe the associated bug no longer exists so it may be worth the effort in that instance.

I tried numerous online resources and message boards and the only consistent reply I got was that it wasn't possible to modify an incoming message.

---
Brought to you by S C Johnson, a family multinational conglomerate.



[ Reply to This | # ]
Change subject of received emails in Mail.app
Authored by: richwiss on Apr 04, '06 06:43:21PM

I too pulled my hair out trying to fix this... but I just upgraded to 10.4.6 and I can now -- once again -- get the mailbox.

Good luck.



[ Reply to This | # ]