Applescript 使用Alfred工作流中的动态字段在Mail.app中创建新电子邮件
我想将动态日期添加到我的Alfred工作流程中,但无法确定。到目前为止,我得到的是:Applescript 使用Alfred工作流中的动态字段在Mail.app中创建新电子邮件,applescript,alfred,Applescript,Alfred,我想将动态日期添加到我的Alfred工作流程中,但无法确定。到目前为止,我得到的是: tell application "Mail" activate make new outgoing message with properties {subject:"some subject", content:"some content" & return & return} end tell 我想在主题中包含动态日期,在内容中包含Alfred片段,但无法
tell application "Mail"
activate
make new outgoing message with properties {subject:"some subject", content:"some content" & return & return}
end tell
我想在主题中包含动态日期,在内容中包含Alfred片段,但无法识别它们。例如:
tell application "Mail"
activate
make new outgoing message with properties {subject:"{date} Call Follow Up", content:"some content" & return & return}
end tell
这有意义吗?任何帮助都将不胜感激 我不确定我是否正确理解了你的问题 你想完成这样的事情吗
set mySubject to ((current date) as text) & " Call Follow Up"
tell application "Mail"
activate
make new outgoing message with properties {subject:mySubject, content:"some content" & return & return}
end tell
我不确定我是否正确理解了你的问题 你想完成这样的事情吗
set mySubject to ((current date) as text) & " Call Follow Up"
tell application "Mail"
activate
make new outgoing message with properties {subject:mySubject, content:"some content" & return & return}
end tell
显然,您无法访问运行脚本工作流对象中的Alfred变量。所以,你可以这样做: 1.添加代码段对象 2.连接到关键字输入对象 3.使用以下代码连接运行脚本对象:
on run argv
set theQuery to item 1 of argv
set theSubject to date string of (current date) & " Call Follow up"
tell application "Mail"
activate
make new outgoing message with properties {subject:theSubject, content:theQuery & return & return}
end tell
end run
显然,您无法访问运行脚本工作流对象中的Alfred变量。所以,你可以这样做: 1.添加代码段对象 2.连接到关键字输入对象 3.使用以下代码连接运行脚本对象:
on run argv
set theQuery to item 1 of argv
set theSubject to date string of (current date) & " Call Follow up"
tell application "Mail"
activate
make new outgoing message with properties {subject:theSubject, content:theQuery & return & return}
end tell
end run