Skip to content

Instantly share code, notes, and snippets.

@rizumita
Created November 5, 2012 08:59
Show Gist options
  • Save rizumita/4016111 to your computer and use it in GitHub Desktop.
Save rizumita/4016111 to your computer and use it in GitHub Desktop.
Mail.appで選択したメールのMailTagsによるキーワードとプロジェクトを取得するAppleScript
tell application "Mail"
set selectedMails to the selection
using terms from application "MailTagsHelper"
set keyword to keywords of item 1 of selectedMails
set myproject to project of item 1 of selectedMails
end using terms from
display dialog keyword
display dialog myproject
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment