mlilback / QuarantineAutomatorAction

An automator action to filter files based on their quarantine type
ISC License
42 stars 10 forks source link

Quarantine Action not triggered when file received in Download folder #4

Open Napoleon-BlownApart opened 6 years ago

Napoleon-BlownApart commented 6 years ago

[MacOS 10.13.5]

Cool idea, thanks. However, it's not working.

I've checked Services -> Folder Actions Setup and the workflow is there and ticked. The workflow consists of a Quarantine Filter action that feeds into a Move Finder Items action. I setup the workflow in Automator to trigger on the Download folder for AirDrop File and specified my own folder as ~/AirDrop.

When I try to run it inside Automator, I get the following output at the bottom:

Quarantine Filter completed - 1 warning
    The action "Quarantine Filter" was not supplied with the required data.
Quarantine Filter completed - 1 warning
    The action "Quarantine Filter" was not supplied with the required data.
Workflow completed - 2 warnings

I will see what I can figure out in the mean time.

Note: This is the first time I have used this workflow, i.e. I haven't tried it in earlier versions of MacOS.

(Shame Apple didn't provide this sort of configuration option.)

Napoleon-BlownApart commented 6 years ago

When actually performing an AirDrop, I get the following log entry in console.app under Mac Analytics Data:

71c75df5c8280fd975181f796ca6d5f3bb030793
com.apple.message.domain: com.apple.automator.action
com.apple.message.value: 0.000950
com.apple.message.value2: 1
com.apple.message.signature: com.lilback.Quarantine-Filter:1:success
com.apple.message.result: success
com.apple.message.uuid: E24CB849-32B6-4E1C-9A45-AA4B87E1B750
SenderMachUUID: 4A7EB688-9B9E-322E-A002-20799B53A12B

So it appears to me that Quarantine Filter thinks it's working.

I also added NSLog() outputs for the initWithDefinition and runWithInput and both produce entries under Devices->HostName. Will keep digging deeper.