Applescript 我可以使用什么命令获取文件报警的文件路径(使用Yosemite/Mavericks)?

Applescript 我可以使用什么命令获取文件报警的文件路径(使用Yosemite/Mavericks)?,applescript,Applescript,我正在试图找到一种方法,了解如何使用Applescript在日历条目上附加文件警报,我发现以下错误: Alerts that open files or scripts must include a file path 这是我用来连接警报的代码 set startFile to "/Applications/TextEdit.app" make new open file alarm at end with properties {trigger interval:-1, filepath:s

我正在试图找到一种方法,了解如何使用Applescript在日历条目上附加文件警报,我发现以下错误:

Alerts that open files or scripts must include a file path
这是我用来连接警报的代码

set startFile to "/Applications/TextEdit.app"
make new open file alarm at end with properties {trigger interval:-1, filepath:startFile}
因此,我所做的是手动创建一个文件报警,现在我想通过Applescript查看该报警的文件路径。我不知道怎么做。我看了字典,知道该使用什么命令/函数,但找不到。搜索网络也没有给我答案


你能帮忙吗?谢谢

听起来您需要做的就是为要将警报附加到的文件提供文件路径。那么,请告诉我,您将如何确定要附加到Alarm的文件?我们是否也可以查看您的脚本。谢谢………..您说要将特定报警文件附加到日历条目,但您正在编写TextEdit脚本。我不明白。警报的目的是在警报触发后打开文本编辑