The Entourage User's Weblog has been relocated.

You should be automatically redirected to the new location in 5 seconds. If not, please click on the link below.
Please remember to update your web browser bookmarks.

This page has been moved to

http://www.barryw.net/weblog/files/9d5040fca72883a1920c7c0d3168a257-17.html.

content="all" /> The Entourage User's WebLog
Hacking Google Earth
On the first day of MacWorld, the Mac version of Google Earth was finally released.

Anyone who has seen this app running in Windows can't fail to have been impressed, and the mac version is just as good Happy

However, one thing ticked me off. The 'mail' button (used to send location files and images via email) is hard-wired to Apple's Mail.app. I use Entourage. That was annoying.

In fact, it ticked me off so much that I worked out a little hack for it. Here's how to modify the app so that it uses Entourage as it's mail client instead of mail.app:

  1. Right-click on the Google Earth.app icon and select 'show package contents'

  2. Look in Contents/Resources and find this file: emailplacemark.scpt

  3. Option drag it to the desktop to make a copy there, and open it in a text editor (it may not open in a script editor)
  4. Replace the text of the script with this text:

    tell application "Microsoft Entourage"
    activate
    try
    set theSubject to "%1"
    set theBody to "%2"
    set theAttachments to {%3}
    set myMessage to make new outgoing message ¬
         with properties {subject:theSubject, content:theBody}
    tell myMessage
    repeat with fileInfo in theAttachments
    make new attachment at end with properties ¬
         {file: alias (posix file (get filename of fileInfo))}
    end repeat
    end tell
    open mymessage
    end try
    end tell
    (Download the file from here, if you like)

  5. Rename the original script as emailplacemarkORIGINAL.scpt, or something like it (so you can easily restore the file if anything goes wrong) and copy your modified script back in to the Resources folder.


Google Earth will now send locations (and images) via entourage.

There's another version of this same script in the folder Google Earth.app/Contents/MacOS/kvw/ for some reason, but it doesn't seem to be doing anything.

Please post any comments or requests you may have by following the 'Comment' link below. I do try to answer all comments I receive
|