【发布时间】:2017-04-19 00:05:54
【问题描述】:
以下 applescript 抛出错误:
set thePath to path to application support from user domain as alias
set mystr to localized string "Add people to this note" in bundle file thePath
错误是
error "Can’t make file (alias \"Macintosh HD:Users:shakes:Library:Application Support:\") into type file." number -1700 from file (alias "Macintosh HD:Users:shakes:Library:Application Support:") to file
这个错误是什么意思? localized string 需要 file 或 alias 对象,而 thePath 是为什么会出现此错误?
仅供参考,localized string reference 说:
Syntax
localized string text required
from table text optional
in bundle fileSpecifier optional
【问题讨论】:
标签: macos localization applescript localizable.strings applescript-objc