A friendly hello
I have created a macro that monitors a folder in which a snapshot of the integrated FaceTime camera is saved after every login process on the Mac. If this is the case, the snapshot is sent to my iDevices via a pushover notification. The plugin to Pushover was nicely downloaded from here
and here posted
Here is an example from my workflow:
My problem is that I don't know what actions I need so that only the current image and not all the existing ones in the folder are sent.
Here is my macro:
iMac login.kmmacros (50,5 KB)
With Hazel 4 there is the possibility to solve this problem, but I can only do it with a Mail/AppleScript. This means that you can interrupt the background mail action.
I found a script on the internet that allows you to attach a picture from Pushover 3.0 on. However, I only get the file path of the image:
#!/bin/sh -e
curl -s
-F "token=aoxxxxxxxxxxxxxxxx5"
-F "user=uxxxxxxxxxxxxxxxxxyrq"
-F "title=${1##*/}"
-F "message=iMac Login
Date: $(date '+%Y.%m.%d / Time: %H:%M')
-F "attachment=@Nachricht.png"
$1
"
https://api.pushover.net/1/messages.json
Since I would like to use this via the script in Hazel 4, my question is whether anyone would know a solution here? @kvanh or @jon123?