自从升级到 Yosemite 10.10.1 以来,我无法创建新的数据库
set theOutputFolder to choose folder with prompt "Please select an output folder:"
tell application "Database Events"
make new database with properties {name:"Test", location:theOutputFolder}
end tell
它似乎会导致应用程序“数据库事件”的数据库“测试”,但事实并非如此。它不在我的桌面上,或者至少我看不到它。有人能帮帮我吗?
答案1
set theOutputFolder to choose folder with prompt "Please select an output folder:"
tell application "Database Events"
make new database with properties {name:"Test", location:theOutputFolder}
save database "Test"
end tell
添加保存命令以保存新数据库。然后它将在 Finder 中可见。