![]() (Tested with the trouble seekers from Microsoft already and it works!) With the dialog box I can actually force the main script/app ("Clean my Mac.app") to really wait before running the whole CCLeaner process (start, clean and quit), while taking the time to save all my files. If you have saved them and you want CCleaner to run, press the yes button" (but for me, it's written in Dutch, as I'm Belgian). The other app is "run-clean-quit CCleaner.app" and is activated conditionally by a dialog box - this dialog box says something like: "Save all your open files. The total structure is one stay open app called "Clean my Mac.app" in which I activate two other apps: one app is called "quit all apps.app" (simply made an action in automator for ing the "ask to save" function!). Not as elegant, but still good enough for my personal needs. I figured as much, but wanted to be sure. If (current date) - inTime is greater than maxWaitTime then exit repeatÄude, thank you so much for replying every time!!! If not (exists (application process appName)) then On quitAndWaitUntilQuit(appName, maxWaitTime) if an app doesn't quit in the repEat loop then this code will never run because of the "error" If not quitAndWaitUntilQuit(aName, 10) thenÄ®rror "The application named " & aName & " could not be quit!" Set openAppNames to name of application processes whose background only is false get the name of the running applications Set idletime to do shell script "echo $((`ioreg -c IOHIDSystem | sed -e '/HIDIdleTime/ ! Things will be quit after " & quit_after & " seconds of system inactivity." Display dialog "Check is performed every " & check_every & " seconds. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |