Hi

I have this very simple applescript that works on my 14.3.9 on OSX10.7.5

tell application "Microsoft Outlook"
    set newMessage to make new outgoing message with properties {subject:"Invoice2358.pdf", content:"Document attached"}
    tell newMessage
        make new attachment with properties {file:"Macintosh HD:Applications:Mac:Adnetv5:PDFs:Invoice2358.pdf"}
    end tell
    open newMessage
end tell

but on the same version of outlook on OSX10.9.2 i get the following error

error "Microsoft Outlook got an error: Can’t make class outgoing message." number -2710 from outgoing message to class

outgoing message still appears to be in the dictionary.  Anyone got any ideas?

Cheers

Keith

I have the following script that worked fine in an other identity but not in a new one.  Anybody has a clue.

I either get a message: Microsoft Outlook got an error: can't make a class outgoing message

or 

The script acts only on already send messages

Here is the script.


-- Resend Message v1.0 (2010-10-27)

-- an applescript by Barry Wainwright <mailto:*** Email address is removed for privacy ***>

-- Restores the 'Resend' function that was in Entourage but never made it to Outlook

-- when the script is run, with a sent message selected or open, a new copy of the 

--    message will be created, with all the original recipients and attachements and 

--    from the correct sending account.

-- This script released under a Creative Commons Attribution, NonCommercial, ShareAlike 2.0 England & Wales License.

-- see <http://creativecommons.org/licenses/by-nc-sa/2.0/uk/> for full details


tell application "Microsoft Outlook"

try

set theMessage to item 1 of (get current messages)

if not (was sent of theMessage) then error -98

on error

display dialog "This script acts only on already sent messages. Please select a sent message and run the script again." buttons {"Abort"} default button 1

return -99

end try

set theSource to source of theMessage

set theAccount to account of theMessage

set newmessage to make new outgoing message with properties {account:theAccount, source:theSource}

open newmessage

end tell


I have an AppleScript to generate and send an email message. It creates the message, but the message doesn't actually get sent, it just gets stored in the Outbox with an error that it could not be sent.

It looks something like this:

tell application "Microsoft Outlook"

activate

set w to make new outgoing message with properties ¬

{account:(pop account myAccount), subject:"test", plain text content:"this is a test"}

make new recipient at w with properties {email address:{address:myAddress}}

open w

                          send message id (id of w)

           end tell


Is this a bug in Outlook 2011 Mac or am I doing something wrong? I've searched the web and this seems to be a common problem.

A similar script worked like a charm in Entourage.

TIA
Rick
How do I change the keyboard back to NA English (or US English or Canada English) ?  Now when I'm typing an outgoing message I get something weird when I try to type a question mark, the apostrophes are slanted the wrong way and there's two of them.  HELP!!!  This idiocy only pops up on outgoing email messages.
I know how to turn on the cc and bcc lines in an outgoing message but is there a way to make it a default that they are always on new messages when I start  an e-mail?
After I replied to an e-mail message a couple of days ago, now every time I am composing an outgoing message a vertical line appears on the left side of the text window. When I click on the "New" tab to create a message, an outline of the message box appears, but almost instantly the horizontal line at the top disappears, but the vertical line on the left stays. I sent a test message to myself and the line does not show up in the received message. So this is just an annoyance, but I would like to fix it. Please help with a solution.
How can I zoom email messages when I am composing and reading so that the font size does not change for the outgoing message but it allows me to zoom the text size larger to be able to read?
about 99% of all messages i try to send generate a pop window stating ".....message rejected for spam or virus content...."  the error log displays error code -17099. the outgoing message finally goes, thru, but can take anywhere from 2 to 40 minutes.  anyone have experience?