Another solution for that is you can store the same value in your data table and SaveAs that datatable before closing it, now you can you used the value of variable stored in datatable in your other script....
just wanted to confirm whether you want to use the value of variable in second script or second Action ?
The value would be used in a second script. I'm able to pass the values between actions by storing it in global or by referring to action name where data is stored. I need to pass the data between different scripts.
When you say "SaveAs" you mean using the fileSystem object?