A client asked for using file dialogs as sheets, a Mac feature to show a dialog attached to a parent window. Once the user made a choice, we trigger a script of your choice and allow you to check the list of files selected.
Before showing the sheet, please call FileDialog.SetSheetScriptTrigger to set script trigger and use FileDialog.SetUseSheet function to enable sheets. Be aware that the script must be different. The first script shows the sheet and exits. Later another script runs and processes results as the process is asynchronously.
New plugin with updated example database is comming soon.