I'm trying to write a script to automatically add the same attachment to a
bunch of selected queued messages in the Outbox but I was given this error
'A "with" can't go after this identifer' when I compiled it.

Not sure what this error means, can anyone help? thanks!

greg ^_^

----- my script -----

on run
    tell application "Microsoft Entourage"
        if the class of the front window is message window then
            set theMsg to the displayed message of the front window
            my ProcessMsg(theMsg)
        else
            set theMessages to the selection
            repeat with theMsg in theMessages
                my ProcessMsg(theMsg)
            end repeat
        end if
    end tell
end run

on ProcessMsg(theMsg)
    tell application "Microsoft Entourage"
        set theFile to alias "My Hard Disk's Name:mypic.jpg"
        set theMsg with properties {attahment:theFile}
    end tell
end ProcessMsg


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

Reply via email to