• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Simple apple script to open a message in Mail?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Simple apple script to open a message in Mail?


  • Subject: Simple apple script to open a message in Mail?
  • From: Bruce Herbach <email@hidden>
  • Date: Wed, 20 Feb 2013 15:00:49 -0500

I'm working on a FileMaker database that downloads message information from Mail. I would like a database user to be able to click on a message in the database and have it run an applescript that opens the original message in Mail.

My initial attempt looks like this:

tell application "Mail"
activate
open (first message of mailbox "Office/Inbox" where message id = "CD482A1C.E5BB%email@hidden")
end tell

Running this script in the Applescript editor gives the following error message: error "Mail got an error: Can’t get mailbox \"Office/Inbox\"." number -1728 from mailbox "Office/Inbox"

The mailbox and message ID came directly from the data imported in to FileMaker. This is running on OS X 10.8.2, FileMaker Pro Advanced 12.0v3 and Mail version 6.2 (1499).

Any help getting this to work would be greatly appreciated.

Bruce Herbach
Herbach Consulting
FileMaker 12,11,10,9 Certified Developer

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


  • Follow-Ups:
    • Re: Simple apple script to open a message in Mail?
      • From: Barry Wainwright <email@hidden>
    • Re: Simple apple script to open a message in Mail?
      • From: Luther Fuller <email@hidden>
  • Prev by Date: Re: Mail GUI script error
  • Next by Date: Re: Simple apple script to open a message in Mail?
  • Previous by thread: Rép: Mail GUI script error
  • Next by thread: Re: Simple apple script to open a message in Mail?
  • Index(es):
    • Date
    • Thread