Jump to content

tschoepler

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by tschoepler

  1. Hi, I just translated the script so it runs on OS X using German as system language. tell application "CCleaner" activate tell application "System Events" click button "Starte CCleaner" of window "Piriform CCleaner" of process "CCleaner" end tell end tell global idleTime, processName, averageCPUvalue, tempCPUsum, counterTics, maxCPUusage set idleTime to 1 set processName to "CCleaner" set counterTics to 0 set maxCPUusage to 40 on idle set processProcessorUsage to word 2 of (do shell script "/bin/ps -xcro command,%cpu | grep " & quoted form of processName) if processProcessorUsage < maxCPUusage then set counterTics to counterTics + 1 if counterTics > 2 then tell application "CCleaner" quit end tell quit me else return idleTime end if else return idleTime end if end idle Thanks Newbie for posting the script in the first place.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.