Posts Tagged ‘applescript’

10.6.4′s Black Email of Death

Friday, July 2nd, 2010

Hopper 120pxSomewhere, in recent updates to Safari 5.0 (included in the 10.6.4 update), something went wrong with the way applications pass text to each other.

A post at MacFixIt suggests that the fault lies with WebKit, which is now “using rgb(0,0,0) as the value for the CSS “background-color” property for messages”.

Whatever the cause, emails generated in other apps often arrive in Mail.app with black text on a black background.

Here are some I made earlier: one generated by mailing a to-do from iCal:

Blackemailofdeath 2

Another created by running an applescript over a blog post in Safari:

Blackemailofdeath

Suggested workarounds vary in complexity. Some involve dragging iCal appointments to the Desktop and then into Mail, others suggest copying all the blacked-out text, cutting and pasting it into another app like Textedit to turn it into plain text and then pasting it back again.

Unmarked Software, the developer of TextSoap, has even produced a stand-alone Mac OS X Service, FixMailText , as a work around.

In fact, the fix is quite simple. Apple’s technote on the problem points out that all you need to do in most cases is

1. Place the cursor into the body of the email.

2. Press ⇧+⌘+T (Shift + Command + T) to turn it into plain text. Or select “Make Plain Text” from Mail’s Format menu

3. Carry on.

It also suggests a slightly more convoluted workaround for those who need to preserve links embedded in Rich Text:

If you want to preserve links the message might contain:

  1. Click in the body of the Mail message
  2. Press Command-A to select all
  3. Press Command-X to cut
  4. Press the Delete key to clear remaining elements
  5. Press Option-Shift-Command-V (Paste and Match Style)

This will replace the black-on-black text with text that uses your default Mail font settings.

As others have said, a technote from Apple on the problem is as close as one will get to acknowledgement that something is wrong.

Hopefully a proper fix is not far away.

UPDATE: 6 July 2010 Mail Attachment Iconizer, a mail plugin that is also afflicted with this bug has been updated with a release (2.1.10) that resolves the problem. [ via MacFixIt }apple mail, safari, webkit, mail.app, apple mail bugs, ical, applescript

Tags: , , , , , , ,

Script to integrate MailTags with Evernote

Tuesday, May 18th, 2010

Screen shot 2010-05-18 at 3.18.18 PM.png

Hawk Wings reader Nic Plum has written an AppleScript that helps MailTags and Evernote play nicely together.

The script sends a selected email to your Evernote Inbox as a note, importing any MailTags keywords as Evernote tags in the process.

As a result he works with one set of tags across Mail.app and Evernote, and doesn’t have to double-handle nearly as much.

He has made the script available on sourceforge, and welcomes comments and feedback.

The download includes a comprehensive guide on how to install and use the script.

Mail.app users who don’t use MailTags can still import emails into Evernote and get a productivity boost by tagging them with an AppleScript described in an earlier Hawk Wings post.

mail.app, applescript, evernote, productivity, apple mail, mailtags

Tags: , , , , ,

Scripts to integrate Toodledo with mail.app and MailTags

Tuesday, November 17th, 2009

ToodledoHawk Wings reader Himanshu Shukla emails to share two applescripts he has written which integrate the online to-do manangement service Toodledo with Apple Mail and the prince of productivity plugins, MailTags .

His first script simply pipes a selected email from mail.app into your online Toodledo account, where it will wait for you to tag it, give it a context and a project or folder.

The second, more complicated script uses MailTags to tag and add other information to the task before you send it off.

When this script is run, it open up a copy of the email, ready to forward to Toodledo and offers you the chance to map fields from the message’s MailTags pane onto categories that Toodledo understands:

Keywords in Mailtags = Context in Toodledo
Project in Mailtags = Folder in Toodledo
Due-date in Mailtags = Due-date in Toodledo

Priorities:

Very Low (Mailtags) = “-1. Negative” (Toodledo)
Low (Mailtags) = “0. Low” (Toodledo)
Normal (Mailtags) = “1. Medium” (Toodledo)
High (Mailtags) = “2. High” (Toodledo)
Urgent (Mailtags) = “3. Top” (Toodledo)

Clever! You can tag and process the task without leaving Mail’s interface.

Of course, it’s even more clever to trigger the script with a keyboard shortcut, either in Quicksilver or Fastscripts or MailTags’ sister app, Mail Act-on:

Toodledomailactonrule

You can get the scripts from Himanshu’s web site where they are freeware.

Combined with Toodledo’s own iPhone app or the Action Lists iPhone app , which is a dedicated GTD system using Toodledo as its backend, you can recreate a robust workflow for Getting Things Done that goes with you on the road.gtd, getting things done, applescript, scripts, mail.app, apple mail, plugins, toodledo

Tags: , , , , , , ,

Script to archive emails into Evernote

Saturday, November 14th, 2009

Applescript 100pxJustin at veritrope has written an applescript that will quickly import emails from mail.app into Evernote , the web-based note and information manager.

It’s easy to use.

First, get the script from veritrope.

Like all Apple Mail-related scripts, the best place to store it is in your ~/Library/Scripts/Applications/Mail folder, so that it appears at the top of the AppleScript menu when mail.app is open.

Then find the email that you want to save into Evernote, highlight it and click the AppleScript menu on the right of your menubar:

Evernotescriptscriptmenu

The script grabs the email and shunts into Evernote. It loads the message first into Evernote’s Desktop app from which it syncs up automatically.

The script also presents a dialogue so that you can tag the email and select where to store it:

Evernotescripttagging

Chosing the “Select notebook from list” options retrieves a list of your existing notebook and also offers you the option to create a new notebook on the fly.

A nice Growl alert lets you know when it’s done.

The end result is a new Evernote note, nicely tagged-up and with a hyperlink back to the original message in mail.app:

Evernotescriptresults

Of course, it all goes much faster if you fire the script with a trigger in Quicksilver or set a keyboard shortcut for it with a utility like Daniel Jalkut’s excellent FastScripts .

veritrope also provides a fistful of applescripts for integrating Evernote with other popular apps like Yojimbo, NeetNewsWire, MacJournal, DEVONThink, even (of all things) Entourage.evernote, mail.app, apple mail, applescript, script, plugins, quicksilver, fastscripts, yojimbo, productivity

Tags: , , , , , , , , ,

Plugins add grunt to Google’s Quick Search Box

Monday, June 22nd, 2009

Qsb IconWhile I was away, an interesting thing happened in the world of productivity apps for Mac. Nicholas Jitkoff, the developer of Quicksilver , was hired by Google to develop something similar for the company and its ever-expanding suite of apps. (Ars Technica carries the full story.)

The result is a sleek little app called “Google Quick Search Box”.

It has nothing like the power and range of Quicksilver, but it does provide a way to launch applications quickly and to perform a few other time-saving tricks:

Qsb Interface

As the name suggests, QSB is focussed on finding things. It doesn’t have the flexibility that Quicksilver enjoys, but it is good at searching. Of course, as one might expect, it excels at searching your Gmail archives and Google Apps documents.

But it can also find a bookmark in Safari or Camino and launch it, find a song in iTunes and play it, find a contact and display the information or start a new email to that person, and so on. It can find a document and offers the option to do one of six things with it:

Qsb Docs

A few weeks ago, extra plugins for the app began to appear, written by users, that expand its power and reach.

Aaron Ecay has written plugins for Firefox bookmarks, and two more that allow the interface to execute shell scripts and Applescript.

Martin Kühl has written plugins that access Leopard’s Services, search inside your Smart Folders and gain access to your Dock items. He makes these available on the github social coding web site where they are listed down the left-hand side.

(UPDATE: Nathan Parry has written a plugin for delicious.com that allows you to search and manipulate your bookmarks and tags.)

With these plugins QSB gains something like the power of Quicksilver.

For example, using Martin’s Services plugin, you can find a document, “tab” into it and type the first few letters of a Service to apply it to that object.

Here I am quickly emailing a text document to a student using the plugin:

Qsb Services

Google’s Quick Search Box is freeware and Leopard-only. Like all software that is still in development, and especially one that works together with third-party plugins, you will come across an occasional glitch.

The latest builds are available from its project page on code.google.com. There is also a Google Group that keeps you up to date with conversations between users and the development team, and with even better plugins that are sure to appear in short order.quicksilver, google, quick search box, productivity, servives, searching, gmail, google apps, applescript

Tags: , , , , , , , ,

Attaché: Script for smarter attachments

Tuesday, June 17th, 2008

ApplescriptappSome people are unhappy with the way Mail.app truncates the names of attachments so that you can’t quite see at a glance what you are clicking on.

They think, in turn, that it’s discourteous to do this to others.

Attaché is the utility for them. It is an AppleScript that provides full information in the body of the email for all enclosed attachments.

Put it in your Dock or on your Desktop (or wherever you can find it easily).

Drop some emails on the applet and it packages them up so that it’s clear at once what the recipient is getting:

Attache Email

The applet allows you to set a number of default parameters.

Attache PrefsOpen up the app and you are greeted with a Preferences pane that let’s you specify a default language (English, German, French, Italian).

I’ve blogged this before, but the author has now added additional preferences. You can now set the account that Mail will use to compose the message and pick a default signature.

Further options allow you to set a default subject and to import text to form the default body of the message.

This will appeal especially to knowledge workers (like me) who spend a lot of time shunting documents and whatnot around from one place to another, although others who want or need to identify attachments more closely in their emails will like it too.

Attaché is freeware. It was created by Martin Michel, who hopes soon to add the ability to zip files dropped on the applet and to set default recipients. It is available from its own page on MacScripter.

mail.app, apple mail, attachments, full text, productivity, civility, applescript

Tags: , , , , , ,

Plugin List adds 122 Leopard Mail Templates

Thursday, June 12th, 2008

MailstationeryThe Hawk Wings plugin and add-on list contains over 140 plug-ins, add-ons, scripts and utilities to make working with Mail.app, iCal and Address Book smarter, faster and better.

Today it gains a new section for Leopard Mail templates.

I’ve managed to round up 122 templates, including the 111 contained in Equinux’s shareware bundle. The others are all freeware and are themed for Christmas, sober business use, New Year’s and the birth of a baby girl (oddly missing from Apple’s default list).

If I have missed any, let me know.

Of course you can always “roll your own” which is more satisfying. Tutorials abound. See The Apple Blog , The Graphic Mac and the tutorial and templates at Technosanity .

Equinuxstationeryexample 2

I’ve also added Eaglefiler to the section on Archiving.

The plug-in list itself is sadly in need of revision.

Some plug-ins have disappeared, the development of some like the notification utility iNotify has been stopped so that they are not compatible with Leopard and others have moved around due to web site changes. And there are many more new utilities that I still haven’t added.

I’ll work through it slowly. Promise. plugins, plug-ins, add-ons, mail.app, apple mail, ical, address book, html templates, leopard mail, applescript, productivity

Tags: , , , , , , , , , ,