Dewster35 wrote:Do apple scripts not run in their own process? I usually try to run them not embedded whenever I am running any sort of script.
• Linked AppleScripts run in their own process which is a bit slower to start because the new process has to be loaded and executed.
• Linked Python scripts run in their own process which is also slower to start.
• Embedded AppleScripts run in the main Indigo Server thread and can block the server if they hang up or have delays. Not recommended except for very simple scripts that only target the Indigo Server (not other apps).
• Embedded Python scripts run in a separate process (from Indigo Server) but they all share the same process. Startup time is only slower for the first script that is executed, then the rest are very fast because the process is already running. As long as a script doesn't take more than 10 seconds to executed, embedded is recommend for python.