Is there a way to pass in a variable when calling a script? Specifically, I would like to be able to send a machine name in to a script and then have the script use that machine name as a variable. For example:
In script A I call script B like this:
run "B.script" machineName
Then in script B, somehow assigne the passed in value “machineName” to a variable called machineName (I am guessing here…) and executing something like the following:
set the searchRectangle to (20, 100, 200, 400) if ImageFound(15, Text: machineName) Click (text: machineName) Log "Successfully selected the machine" set the searchRectangle to fullscreen else LogError "Error: Specified machine was not found." return end if
Is something like this possible?