How can I auto run ccleaner on mac OS X?

Hi guys, does anyone know how to make ccleaner start, clean and close like windows version?

I've tried Apple Scrpit editor and use this formula:

tell application "CCleaner"

activate

tell application "System Events"

click button "Run Cleaner" of window "Ccleaner" of process "CCleaner"

end tell

end tell

but unfortntly It give me this error message:

error "System Events got an error: Access for assistive devices is disabled." number -1728 from window "Ccleaner" of process "CCleaner"

wating your help :)

regards,

Hi batarfihm, and welcome to the forum.

Not many on here actually have Macs, but you may get some input. I can find info on how to launch a program on startup for the Mac ...

http://www.ehow.com/how_6546_open-program-automatically.html

... but I don't think it would launch CCleaner and also "run it", so not much use.

Just in case you don't get input, I will point your topic out to the developers who may be able to help, and I'll also ask them how the Mac versions "Help File" is coming along, as it's sorely needed.

Hope that helps for now.