0

我正在尝试运行这个简单的applescript代码并遇到Result: missing value错误

tell application "Evernote" to create note title "Note 3" from file "/Users/nicholasromano/Downloads/hi.sql" notebook "AppleScriptNotebook2"

该文件存在,有什么想法吗?

编辑:我也尝试使用 HFS 路径:"Macintosh HD:Users:nicholasromano:Downloads:hi.sql"但返回了相同的错误。

4

1 回答 1

2

查看AppleScript 和 POSIX 路径指南。这对我有用:

set posixPath to "/Users/someone/Downloads/test.txt"
set thePath to POSIX file posixPath

set theTitle to "Sample Title"
set theNotebook to "Inbox"

tell application "Evernote"
    set theNote to create note title theTitle from file thePath notebook theNotebook
end tell
于 2013-08-31T05:45:07.710 回答