【发布时间】:2020-09-27 21:48:51
【问题描述】:
我有一个用于自动化小型工作流程的脚本,但我无法让主题列出当前月份。
这是我的脚本:
tell application "Finder" to set selectedItem to item 1 of (get selection)
set theAttachment to selectedItem as alias
set fileName to name of selectedItem
tell application "Microsoft Outlook"
set newMessage to make new outgoing message with properties {subject:"(current month) as string Message from John Doe"}
tell newMessage
make new attachment with properties {file:theAttachment}
end tell
open newMessage
get newMessage
end tell
这可能吗?我已经尝试过在线搜索和在 Script Debugger 中进行搜索,但我一直没能找到。提前致谢。
【问题讨论】:
标签: macos outlook applescript