Wanted: can the following OS fix be scripted and is anyone willing?

  1. Help a user find a designated folder created by Mail.app in the Finder e.g. 'Users/[your name]/Library/Mail/V2/Mailboxes/Repair.xmbox'.
  2. Then search through the folder structure and for each .emlx message just in that designated folder, open each email with TextEdit.app say, search for instances of 'base 64' and replace with '8bit' and save


This fix seems to address the issue being discussed here and obviously automating the steps would be a huge time saver.

MacBook Pro (15-inch Mid 2012), OS X Yosemite (10.10.2)

Posted on Apr 2, 2015 10:26 AM

Reply
19 replies

Apr 7, 2015 3:05 PM in response to Rich In Space

Some familiarity but not enough to troubleshoot well.


Initially the script was timing out - didn't capture the error number I'm afraid. Initially I thought not opening a mail and only highlighting it in a list could be the issue but in fact think a TextEdit dialog box was lurking in another Space as quitting TextEdit and then running the script all looked OK.


However on the couple of text emails I've ended up with a different encoding issue and it looks more like html now. Here's a copy of the opening lines of one.

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

compared to what I was originally seeing which was lots and lots of this:

嗁テig拆.畕�呴

Apr 9, 2015 6:45 AM in response to hr101

hr101 wrote:


Yep, no problem. I've dropped an eml here. Any good like this?

https://www.dropbox.com/s/dnclmc7y82gz1rg/Pitchero%20Club%20Conference%20-%20Wor kshop%20Choices.eml?dl=0

Perfect hr101. That allowed me to easily find the problem and fix it. It turned out to be just a missing line-ending character. Please, use the revised AppleScript version in the parallel thread above.

Apr 10, 2015 1:12 AM in response to Rich In Space

Having mixed results with the new script but can't isolate when it does work and when it doesn't. Yesterday fixed one mail in amongst multiple failures.


Today fixed two and then failed and subsequently the script seems to time out every time now. Have quit all editors to ensure no dialogs are background processes are still running but still no success.


It seems to have something to do with searching for results and trying to fix a mail when it's the result of a search or because the mail has been moved off the server to local mailboxes maybe...

error "TextEdit got an error: AppleEvent timed out." number -1712


If I use a different editor - Text Wrangler - same outcome.

error "TextWrangler got an error: AppleEvent timed out." number -1712

Apr 10, 2015 3:08 AM in response to Rich In Space

Permissions might be it. Not clear why some of my mailboxes would have a problem but indeed running the script with the same mail selected in certain mailboxes does seem to be where the script fails on closer review. When it does fail, TextEdit doesn't appear to launch at all. The script cog wheel runs for 30-40 seconds and then fails mostly without any error or pops a little red cross in the script run menu. Only when I run the script from Editor do I get the error message. I'll do more digging my side as this does seems to be me now not the script. Thanks for your patience and support so far.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Wanted: can the following OS fix be scripted and is anyone willing?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.