AppleScript Entourage with spotlight filed

B

Bertrand Comte

Hi,

I'm still trying to build an applescript which will be able to perform find
in Folders of my computer through the spotlight field in the corner of the
window. How can I write in this field thanks an applescript ? I'm unable to
use the "Entourage Search Suite" and I didn't get any example on the web
about it.

My idea would be to select an email address and easily find all messages
related to this email in entourage thanks to AppleScript.

Thank you very much for your answer !

Regards.

Bertrand
 
C

Corentin Cras-Méneur

Bertrand Comte said:

Hi Bertrand,
I'm still trying to build an applescript which will be able to perform find
in Folders of my computer through the spotlight field in the corner of the
window. How can I write in this field thanks an applescript ? I'm unable to
use the "Entourage Search Suite" and I didn't get any example on the web
about it.

My idea would be to select an email address and easily find all messages
related to this email in entourage thanks to AppleScript.


Well I'm no expert, but I tried playing with it a bit.
The search command in the Entourage AppleScript dictionary seems to be
what you are looking for but the dictionary wasn't all that clear and I
couldn't figure out exactly how to get it to display the search results
:->

You could also have the AppleScript run a shell command.
You can easely find all Entourage e-mails for (e-mail address removed) in the
Terminal using the command:

mdfind -onlyin ~/Library/Caches/Metadata/Microsoft/Entourage/2008/
"kMDItemKind == vrge08_message && kMDItemTextContent == (e-mail address removed)"

(in one line of course)

-onlyin and its path are not required but I figured that the search
would run faster if you restrict the search scope as much as possible
(maye I'm wrong).

mdfind "kMDItemKind == vrge08_message && kMDItemTextContent ==
(e-mail address removed)"

would work as well.


Corentin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top