I’m building my first script with multiple parts and need to reference (not change, just get as a text string) a variable from one script to another. So basically, the variable resides in script A, and I need to call it in script B and use the value.
But i would like to change some values permanently in the referenced script lather with another script.
Here’s the basic idea but it’s not a permanent solution.
set myScript to load script alias ((path to desktop as Unicode text) & "testScript.scpt")
display dialog "theValue" default answer "Something else."
set t to text returned of result
set ValueA of myRefScript to t