0

我有一个苹果脚本,可以在邮件的最后打开带有附件的撰写邮件(新邮件)屏幕。

但我想要一个将附件放在用户指定位置的苹果脚本。我做了很多谷歌搜索,但没有找到任何东西。请给我一些解决方案。

消息正文模板如下:

亲爱的名字,

--------一些文字----------

--------一些文字------------

附件1如下:

此处应出现附件 1

附件2如下:

此处应出现附件 2

--------一些文字----------

--------一些文字------------

谢谢并恭祝安康,

4

1 回答 1

-1

这是一个例子:在第三段之后插入两个附件

set newOutgoingMessage to make new outgoing message with properties {visible:true, subject:"test", content:someText}
tell newOutgoingMessage
    make new paragraph with data (" " & return & return & return) at after paragraph 3 of content
    make new attachment with properties {file name:filePath1} at after paragraph 4 of content
    make new attachment with properties {file name:filePath2} at after paragraph 5 of content
end tell
于 2012-06-10T16:47:47.673 回答