Re: AS and Carbon Copy Cloner
Re: AS and Carbon Copy Cloner
- Subject: Re: AS and Carbon Copy Cloner
- From: OzSanta <email@hidden>
- Date: Sun, 30 Jan 2011 12:09:18 +1100
On 30/01/2011, at 11:39 AM, Bob Cuilla wrote: Has anyone used AS to run a few simple Carbon Copy Cloner?
I am trying to open the "scheduled tasks" menu and then pick one of the previously define tasks, enter the password and click "run"
Any ideas?
Thanks in advance
Bob
G'day Bob
I whipped this up, seems to work with the GUI
Regards
Santa
tell application "Carbon Copy Cloner" activate tell application "System Events" to tell process "Carbon Copy Cloner" click menu item "Scheduled Tasks..." of menu 1 of menu bar item "Carbon Copy Cloner" of menu bar 1 set foundflag to false repeat with x from 1 to 10 try set t to value of text field 1 of row x of table 1 of scroll area 1 of group 1 of window "Backup Task Scheduler" if t = "Weekly Backup" then select row x of table 1 of scroll area 1 of group 1 of window "Backup Task Scheduler" set foundflag to true exit repeat end if on error exit repeat end try end repeat if foundflag then click button "Run" of group 1 of window "Backup Task Scheduler" keystroke "yourpassword" keystroke return end if end tell end tell t |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden