Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.4: Use Spotlight comments to tag Mail messages' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Use Spotlight comments to tag Mail messages
Authored by: raphaeld on Jun 08, '05 01:52:53PM

Great hint. I modified your idea somewhat with an AppleScript. You still need the Automator workflow. From Mail, you highlight the documents you want to move to the project mailbox and run this script. It will move the messages and run the Automator workflow. Here's the script below. If you're showing your scripts in your menu bar (using the Applescript utility) you can run this directly from Mail.


tell application "Mail"
activate
set selectedMessages to selection

set selCount to (count of the selectedMessages)

if selCount = 0 then

display dialog "You must select at least one mail message first." buttons {"OK"}

else
set theMailbox to "your mailbox name here"
-- fill in the name of the mailbox (remember to use the double-quotes

tell application "Mail"
move the selection to mailbox theMailbox
end tell

tell application "Finder"

set pathToApp to (path to home folder as string) & "the app location"
-- i.e. if the workflow is stored as an application (called SpotlightMail.app)
-- in a folder called Workflows in your documents folder you should enter
-- "Documents:Workflows:SpotlightMail.app"
-- remember to use the double-quotes

open pathToApp
end tell
end if

end tell



[ Reply to This | # ]