(简单)Applescript代码失败

时间:2016-03-20 15:17:04

标签: applescript

我在Mac OSX脚本编辑器中运行时收到以下错误消息:

  

错误“无法将”b_PlaceName \“的”1550级“设置为”北京“。”   “b_PlaceName”的

你能看到代码中的错误吗?

set strVName to "b_PlaceName"
set strVValue to getKVar(strVName)
tell application "Microsoft Word"
    tell active document
        set variable value of strVName to strVValue
    end tell
end tell
--———————————————————————————————
on getKVar(pstrVName)
    tell application "Keyboard Maestro Engine"
        set strKVValue to value of variable pstrVName
        return strKVValue
    end tell
end getKVar
--———————————————————————————————

0 个答案:

没有答案