Not sure if I am describing my problem correctly, but what I would like to do is call on a script/function I have created when a user presses a button in my app.
For instance, I have a script that will take a use inputted image, run analysis on it, and output the results. Everything works fine when it is run as a script, and so was hoping to port this over to an app, where the use inputs the image, and clicks an "Analyze" button, which would run the script I have created.
This is my first time trying to create an app and I find the documentation very poor. I can't find any information regarding this online.