NFC tags as external drive inventory?

I have several external drives hanging around. It’s hard to remember what’s on which, despite naming them, labeling them with their names and writing down … somewhere … what’s on them.

I also have some NFC tags lying around that I’ve never figured out what to do with.

It occurs to me: I should be able to stick a tag on each drive and set my phone to show me a contents list when I tap a tag. Preferably, that contents list is stored in the cloud (iCloud or Dropbox) and is plain text or csv — I try to keep everything I can in plain text, and use nvUltra, Obsidian, NotePlan and similar apps to view and edit.

So… bright Automators, what’s the best way to (in order of importance):

  • open a plain text or csv document on my iPhone when I tap an NFC tag?

  • update (or replace) a plain-text file list on a Mac with the contents of an external drive? Ideally this would happen on dismounting, to capture any backup changes, but I realize other triggers could be easier.

On my Mac, I use Keyboard Maestro, TextExpander and Hammerspoon pretty regularly, have Hazel and would love to use it more, and I’m not on Monterrey, so no Shortcuts on Mac. I do use Shortcuts and Scriptable (preferred) on iOS, as well as 1Writer. I use Drafts on both, but just to create notes, not to store them. Happy to consider other tools though.

Thanks in advance!

Thats an easy one: you can try it with Drafts (free iCloud-sync). Scan a NFC (“Ghost” is just an Amiibo-card of Boo :slight_smile: ) → action “Open Draft” (select the draft you need (“Backup 01” for me). Done.


IMG_2606

Thank you!

I don’t store information in Drafts. But that is easily adaptable to any text editor with a URL scheme.

Here’s what I came up with to QuickLook a (test) plain text file from Dropbox:

1 Like

Drafts was just my example because i use it. :wink:

1 Like

No problem! I appreciate it. It set me on the right path.

1 Like

Awesome idea.
Please let me know if you find a way of automatically saving to a file a disk’s list of contents.

1 Like

Will do! I hope to tackle that this weekend

1 Like

My first thought is to just use a quick and dirty terminal command:

ls -R /path/to/drive > drive-note.txt

Would that work for you?

That would work perfectly – thank you!

1 Like

Just an update with a couple discoveries:

  1. The shell command above worked for cataloging a disk, but the results weren’t very readable. I also discovered I don’t necessarily need/want every single file in a catalog (down to the last plist item in a clone backup…).

Instead, I ended up either:

  • dragged the icon for the drive from Finder into a blank BBEdit document; BBEdit automatically created a nicely indebted and complete file tree; or

  • opened the drive’s file structure to the degree I wanted in the Finder (list view), selected everything, copied (cmd-c), and then pasted in a blank BBEdit document; this gave me an unindented list of files, which I could then indent manually (if it wasn’t too long) – useful for drives with Time Machine backups of multiple machines, for example, where you don’t necessarily want every file, just the names of the machines

  1. NFC tags are fun – but they aren’t very compatible with a taste for sleek/modern looking external drives, at least not if those drives have the wrong kind of metal enclosure.

The small tags I have work perfectly off drives and on plastic enclosures. But on some metal enclosures, my phone just wouldn’t read them.

I tried a layer of duct tape about the size of the tag, but it wasn’t enough. There are apparently “metal NFC” tags that are supposed to solve this, but I haven’t tried that yet.

There are indeed. I’ve used them and would highly recommend them. When I last purchased some (several years back), they were only fractionally more expensive than regular ones.

1 Like

Thanks! That’s good to know. Do you have a brand to recommend?

I am sure any would be fine, but the last ones I bought were NXP Semiconductor anti-metal NFC tags.

1 Like