Qwertie
Qwertie

Reputation: 6573

Using lists from another script

In applescript can you use a list from another script eg have in one script

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

And in another have

choose from list example 

Can this be used in the editor or does it need to be a app?

Upvotes: 1

Views: 58

Answers (1)

Lri
Lri

Reputation: 27633

/tmp/a.scpt:

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

Another script:

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

Upvotes: 3

Related Questions