I have a script which runs to the first choose from list dialog remarkably fast in Script Debugger (< .5 second ). This same script has a huge ( 5 second ) delay when run from the script menu. I determined that the delay in script menu execution is caused by the activate command that I placed before the choose from list dialog.
activate
choose from list categoryList
If I alter this generic activate call to one directed at Script Debugger the script runs quickly from both locations.
tell application "Script Debugger"
activate
choose from list categoryList
end tell
If I alter it to on directed at ‘me’ then, again, it runs with a 5 second delay from the script menu.
tell me
activate
choose from list categoryList
end tell
I assume this is just AS resolving who should activate, but why the large delay resolving?