Problem with executing AppleScript in Shell

@Beatrix_Willius can confirm, but I’m pretty sure that it works when in a Different Thread, and when it doesn’t work it’s because it’s on the Main thread.

The Main thread can only process a single Event at a time, and the Event must run to conclusion (the event handle must return; it can’t be looping or sleeping) before the next Event will be processed.

Could be.

Don’t poll, folks.

Had to take 2 days off programming because I had an altercation with a branch. Mike D is correct. The async shell only works from within a thread.

1 Like