【发布时间】:2012-02-27 10:05:03
【问题描述】:
我有一个用于 Mail.app 的 AppleScript,它会打开一个带有预定义收件人地址和主题的新消息窗口。该脚本每次运行时都会打开一个新窗口:
tell application "Mail"
set newMessage to make new outgoing message with properties {subject:"some subject", content:"" & return & return}
tell newMessage
set visible to true
make new to recipient at end of to recipients with properties {name:"some name", address:"some address"}
end tell
activate
end tell
但我希望脚本仅在之前打开的窗口关闭时打开一个新的消息窗口——否则,之前打开的窗口应该出现在前面。
谁能帮我修改这个脚本以实现上述功能?
【问题讨论】:
标签: applescript