Pass information from one script to another

How can I pass information such as variables from one script to another?

I could not find any information on how to let two scripts “talk to each other”

Thanx Vince

If I understand what you want to do, here’s one very simple example. Save this first block of code as “called script”.

on run {word_a, word_b}
	return word_a & " " & word_b
end run

Now, run the following code after entering the correct path to “called script” in line 1.

set called_script to "path:to:called script"

set foo to (run script alias called_script with parameters {"It", "worked!"})
display dialog foo

– Rob

Thanx a lot!

You just handle the second script like a subroutine with a list to pass?
No I understand!

Vince