tell application "/Applications/CCleaner.app" to activate tell application "System Events" tell application process "CCleaner" click button "Run Cleaner" of window 1 end tell end tell delay 5 tell application "CCleaner" quit end tell
delayを入れないと実行前に終了してしまうので5秒ほど待っています。