使用其他脚本中的列表

时间:2013-08-10 08:03:52

标签: list applescript

在AppleScript中,您可以使用其他脚本中的列表 例如,有一个脚本

set example to {"A","B"}

另一个有

choose from list example 

可以在编辑器中使用它还是需要成为应用程序?

1 个答案:

答案 0 :(得分:3)

/tmp/a.scpt

property example : {"A", "B"}

另一个剧本:

set s to (load script "/tmp/a.scpt")
example of s -- {"A", "B"}