I have an AppleScript application that runs a do shell script of my script.sh in the application package.
That my script.sh does some interaction with the user through $osascript -e 'tell me to button returned of (display dialog "blabla.Do you want blabla." buttons {"yes", "no"})')
The dialogs seem to have no "owner", kind of system wide. Whatever application is forefront, clicking on the dialogs windows doesn't change the forefront application to any other.
Is it possible to get the parent application name and pass it so the dialogs would "owned"by the original AppleScript app?