Set termedApp to (notif's userInfo's valueForKey:"NSWorkspaceApplicationKey") we don't use the idle loop, so tell the system let the app sleep. Tell notifCent to addObserver:me selector:"someAppHasTerminated:" |name|:"NSWorkspaceDidTerminateApplicationNotification" object:(missing value) Set notifCent to workSp's notificationCenter() Set workSp to NSWorkspace's sharedWorkspace() Property NSWorkspace : class "NSWorkspace" Thank you in advance for any clarification use AppleScript version "2.4" Not sure what to put here now several other processes have been added - tell process "AGMService"ĭoes anything else in the code need updating for current macOS Monterey ? Something I have noticed is that if lots of adobe processes are quit then it launches this daemon "AdobeCRDaemon" is that expected? Is it fine to force quit process and apps like this? Not entirely sure how to separate apps from processes and if its necessary to killall for apps or just quit command? Any idea if I have added these correctly? I am trying to create something similar but for 3 additional apps also Lightroom / creative cloud and adobe bridge also and have edited it slightly to include all the other processes that Adobe run in the background. I too find it crazy how many processes Adobe runs in the background - even when finder extensions are disabled and not using any apps. This code and question is following on from perfectfiasco question and answer by Ted Wrigley.
0 Comments
Leave a Reply. |