Request more appropriate quality of service

This code is executed in response to user action, e.g. plug-in action or
AppleScript menu.
This commit is contained in:
Barijaona Ramaholimihaso
2026-03-10 10:59:22 +03:00
parent 3e9bcef6de
commit 06376b7510
+1 -1
View File
@@ -916,7 +916,7 @@ withReplyEvent:(NSAppleEventDescriptor *)replyEvent
-(void)runAppleScript:(NSString *)scriptName
{
NSString *baseScriptName = scriptName.lastPathComponent.stringByDeletingPathExtension;
dispatch_async(dispatch_get_global_queue(QOS_CLASS_DEFAULT, 0), ^{
dispatch_async(dispatch_get_global_queue(QOS_CLASS_USER_INITIATED, 0), ^{
NSDictionary *errorDictionary;
NSURL *scriptURL = [NSURL fileURLWithPath:scriptName];
NSAppleScript *appleScript = [[NSAppleScript alloc] initWithContentsOfURL:scriptURL error:&errorDictionary];