cre*_*gox 0 applescript automator
例如,为什么这个脚本适用于AppleScript编辑器而不适用于Automator?
display dialog "a lot of text just to break to line 4 whatever continuing... few more... argh... there!" with title "just a test" buttons {"Cancel", "Uninstall", "Continue"} default button 3 with icon caution
在Automator上评论标题之后的所有内容,这是我得到的差异:
我想的标题和超过3行,如果有可能,但这些都不是唯一的怪异行为不一致,我在大约之间的AppleScript过去一小时似乎编辑器和自动机.图标是另一个图标.
在实例中,我在Automator中尝试的错误是这样的:
录音,这里的问题是:
Yuj*_*uji 10
问题的原因是Automator导入了Applescript Studio的术语,它重新定义了重新定义的display dialog
部分Panel Suite
; 该版本没有with title
参数.您可以Automator
使用Applescript编辑器打开来检查.(使用文件→打开字典...)我同意这是Apple的一个愚蠢的决定:(
你可以通过使用来规避这个问题
using terms from application "Finder"
display dialog "a lot of text just to break to line 4 whatever continuing... few more... argh... there!" with title "just a test" buttons {"Cancel", "Uninstall", "Continue"} default button 3 with icon caution
end using terms from
Run Code Online (Sandbox Code Playgroud)
来自Automator; 这告诉Applescript的编译器使display dialog
命令调用标准定义.
归档时间: |
|
查看次数: |
2922 次 |
最近记录: |