【发布时间】:2013-09-11 02:00:34
【问题描述】:
我需要从 FileMaker 中删除我的 Cincinnati Laser 上的一个文件。它通过 FMScript 将容器的字段内容导出到该位置。所以我知道文件名和路径都建在该记录的计算字段中。但我不知道如何使用 FM12“执行 AppleScript”脚本步骤将该信息放入 Applescript 当我硬编码路径和文件名(如下所示)时,它可以工作。
set xpath to "Titanium Brain:Users:smartin:Desktop:Laser:1512-clr-c.cnc"
tell application "Finder"
delete file xpath
end tell
当我尝试传递字段内容(如下所示)时,它不起作用。
set xpath to Laser::gCNCPath
tell application "Finder"
delete file xpath
end tell
我错过了什么?
【问题讨论】:
-
你能在第二个脚本中记录 xpath 的值吗?试试这个作为第二行(不带引号):'display dialog (xpath as string)'。我的预感是这与将 xpath 值正确地放入 Applescript 中有关。
标签: applescript filemaker