So I know one can Tell other applications to “activate” to get them to the foreground, but how can my own script tell itself to “activate”? I need to start an application in the foreground, but at some point I want to return the script to the foreground without user intervention and without closing the other app.
Thanks!