Mail.app is scriptable. However, under 10.1.5, the scripting support is
minimal, and almost nothing works well. You need OS X 10.2 and the new
version of mail.app before you can really do anything useful. I don't know
whether you can do what you want or not, since I've never tried mail.app
myself.

You might try asking on an Apple mailing list if you have Jaguar installed.

On or near 8/27/02 7:33 AM, Robert Nicholson at [EMAIL PROTECTED]
observed:

> Does anybody know if Mail.app is scriptable?
> 
> Can I hack up the following to work with Mail.app?
> 
> tell application "Microsoft Entourage"
>   set theMessList to every message of folder "Sent Items"
>   if theMessList is not {} then
>       set hitCount to 0
>       repeat with aMess in theMessList
>           tell aMess
>               set attList to {}
>               try
>                   set attList to name of every attachment
>               end try
>               if attList is not {} then
>                   repeat with x from (count attList) to 1 by -1
>                       if item x of attList contains "resume" then
>                           delete attachment x
>                           set hitCount to hitCount + 1
>                       end if
>                   end repeat
>               end if
>           end tell
>       end repeat
>       say "" & hitCount & " resume attachments deleted"
>   else
>       display dialog "No Messages in the folder!" buttons {"Stop"} default
> button 1 with icon stop
>   end if
> end tell
> 

-- 
My web page: <http://home.earthlink.net/~allenwatson/>
My scripts page: <http://homepage.mac.com/allenwatson>
Microsoft MVP for Mac Entourage/Word--<[EMAIL PROTECTED]>


-- 
To unsubscribe:                     
<mailto:[EMAIL PROTECTED]>
archives:       
<http://www.mail-archive.com/entourage-talk%40lists.letterrip.com/>
old-archive:       
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>

Reply via email to