QRecallDownloadIdentity KeysForumsSupport
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Groups] Back to home page 
Notification for Successful or Failed Backups  XML
Forum Index » Cookbook and FAQ
Author Message
Bernd Stein



Joined: 28-Aug-18 13:08
Messages: 3
Offline

Does anyone have a good solution for getting notified by email or iMessage about the "Success, Warning, Failure" status of a Qrecall action?

I know there is the epilog script option. Can people share their scripts for sending email or iMessages that report on e.g. the success or failure of a capture action.

I am managing the backups of several family members and need to get notified if something goes wrong with their backups.

James Bucanek



Joined: 14-Feb-07 10:05
Messages: 1434
Online

Here’s one solution, that assumes you’re using Apple Mail.

First, update to QRecall 2.1.7. There’s a bug in 2.1.6 that doesn’t reliably run the epilog script after an error.

Launch the Script Editor (built-in app the comes with macOS).

Create a new document and paste in this code:


Edit the value of the recipientAddress at a minimum, but feel free to customize the name, subject, and content values to suit your needs.

Save the file as a compiled AppleScript (.scpt) file.

In QRecall, open the actions you want to be notified, by email, when they fail. Click the “Select” button in the Epilog script and select the AppleScript file you just saved. The “Needs UI” option should automatically get checked, but just make sure it is. Save the action.

That’s it.

After each edited action runs, it will execute this AppleScript which will see if the action finished successfully, or at least non-fatally. If it was successful, it does nothing. If there was a failure, it opens the Mail app, composes, and sends a message to the address in recipientAddress.

- QRecall Development -
[Email]
Bernd Stein



Joined: 28-Aug-18 13:08
Messages: 3
Offline

Great, the script is working fine. Exactly what I needed.
 
Forum Index » Cookbook and FAQ
Go to:   
Powered by JForum 2.1.8 © JForum Team