Outlook for Mac

New Identity and resend script stopped working.

待回答 0 个回答

较早的帖子,发布于 2014年2月10日。 其中的信息可能已经过时。

本帖暂无中文翻译,以下为英文原文。

问题 提问于 2014年2月10日
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


暂无回答

撰写回答

您的邮箱地址不会被公开。请勿发布密码。

This site uses Akismet to reduce spam. Learn how your comment data is processed.