我知道你可以缩小/压缩Javascript 或 CSS 代码,但你能用 AppleScript 做到这一点吗?
问问题
190 次
1 回答
1
是的,换行符相当于 C 中的分号。不过,您可以使用“Chevron”语法。
on run
main()
end run
on main()
tell application "Finder"
display dialog "Hi."
end tell
end main
转换为:
on «event aevtoapp»
main()
end «event aevtoapp»
on main()
tell «class capp» "Finder"
«event sysodlog» "Hi."
end tell
end main
这里没有放大或重新定义,这实际上是 AppleScript 的原始语法。我使用 Script Debugger 应用程序在两种语法之间切换。
于 2011-12-21T19:22:39.067 回答