2012-07-15 24 views
0

我确实在几台计算机上工作,并使用我的电子邮件地址保留我的文件的额外保存副本。我想为Microsoft Word提供一个Automator服务,该服务会将当前的word文档作为附件和标题作为主题向我发送电子邮件。如果我可以在Word中使用一个宏来做同样的事情,那也会很棒。谢谢。使用Automator通过电子邮件发送文档

回答

1

您可以将其作为AppleScript自身运行,也可以将AppleScript插入Automator工作流程中。

tell application "Microsoft Word" 
    try 
     set theTitle to name of front document 
    end try 
    send mail front document 
end tell 

tell application "Mail" 
    activate 
    tell its outgoing message 1 
     set subject to theTitle 
    end tell 
end tell 
+0

这将有电子邮件的主题作为文件名吗? – Jordan 2012-07-16 07:21:21

+0

尝试编辑后的版本... – adayzdone 2012-07-16 12:40:41

+0

如何在所有文档编辑应用程序中使其通用? – Jordan 2012-07-20 08:59:07