During my upgrade to Tiger I found that Apple’s Mail 2 would not work at all for me, so I migrated over to Thunderbird. I wanted to retain some of Spotlight’s systemwide search capabilities for TB, so I’ve configured it to save all incoming emails in a folder in .eml format. Spotlight should pick up on these plain text files and search their content.
The problem is that Thunderbird has a longstanding bug that prevents it from opening an .eml file when the file is double-clicked. It will, however open the .eml file properly through its file>open saved message…dialog.
My idea here is to associate all .eml files with an applescript that will get the file’s path, open TB, open the file>open dialog, and use the path information to navigate to/open the file from within TB.
Is this feasible? Here’s what I’ve got so far:
activate application “Thunderbird”
tell application “System Events”
tell process “Thunderbird”
– GUI Scripting statements:
click menu item “Open Saved Message…” of menu 1 of menu bar item “File” of menu bar 1
I’ve never written an applescript in my life and I don’t know how to script it in a way that will 1) get the file’s path 2) properly select the file in the open dialog and then open it.
Can anyone help me out here? Remember this has to be saved as an application so that if I click on an .eml file, the script will run and open the file from within TB.
Thanks in advance!