Can anyone help? I would really appreciate it.
I am trying to write a script for apple’s infernal backup.app, so it simply logs onto a server, backs up and then put the mac to sleep. I can’t believe it, but backup.app doesn’t support applescript!
Anyway I have read up on scripting the UI, which is what I am trying. First step is to select the correct method - backup to a drive. I now have the following script:
tell application "Backup"
activate
tell application "System Events"
tell process "backup"
tell menu bar 1
tell menu bar item "View"
tell menu "View"
click menu "Back up to Drive"
end tell
end tell
end tell
end tell
end tell
end tell
But all I get back is an error: “System Events got an error: NSReceiverEvaluationScriptError: 4”
I don’t understand the eror, let alone the problem. Can anyone help?
thanks
Martin