How to execute NSAppleScript?
fisherjoe opened this issue · 1 comments
fisherjoe commented
When I run NSAppleScript in Perfect , the service stop at the point executeAndReturnError with not any error message. I search NSAppleScript on web and found it is not thread-safty however Perfect is not runing on main thread.
The question is: How could I run NSAppleScript in Perfect or get main thread? Is it special way to realize?
PS: It is wired that it is fine when run release exec but in xcode.
kuhl commented
If you want to run on main thread you call Swift's DispatchQueue. This issue has nothing to do with Perfect. Please close.