我想获取此代码的javascript版本。但是我失败了。
我不知道如何在javascript中表达“导出到文件exportName”。
调用导出方法时,我总是遇到类型错误。
tell application "Numbers"
set theFilePath to POSIX file ("/Users/cong/Desktop/")
set exportName to (theFilePath as text) & "test1.xlsx"
open POSIX file "/Users/cong/Desktop/test1.csv"
tell front document
export to file exportName as Microsoft Excel
close
end tell
end tell