How to use Received Transport in conditions?

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

How do I make a rule match when kMDItemUserSharedReceivedTransport includes com.apple.AirDrop?

I regularly export OPML files from a podcast player app on iPhone, which opens a share sheet where the quickest way to get them to the Mac is AirDrop. Because the filename is very common, I want to make sure Hazel only works on those.
Last edited by spaceship on Thu Jul 28, 2022 4:04 pm, edited 1 time in total.
spaceship
 
Posts: 10
Joined: Fri Jan 11, 2013 12:18 pm

Do "Get Info" on the file and check the metadata there to see if it is accessible.
Mr_Noodle
Site Admin
 
Posts: 11251
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Mr_Noodle wrote:Do "Get Info" on the file and check the metadata there to see if it is accessible.


You mean in Finder? It doesn't show this data.

My current solution is "Passes shell script" with
Code: Select all
mdls -name kMDItemUserSharedReceivedTransport $1 | grep com.apple.AirDrop
spaceship
 
Posts: 10
Joined: Fri Jan 11, 2013 12:18 pm

That is probably the way to go then if it isn't visible there.
Mr_Noodle
Site Admin
 
Posts: 11251
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Thanks
spaceship
 
Posts: 10
Joined: Fri Jan 11, 2013 12:18 pm


Return to Support

cron