1

I am attempting to start organising my .WAV/.AIFF samples by using Tags. Unfortunately the app I want to use them in, does not support Tags. I'd like to spend a few days setting up my 100gb+ sample archive using Tags, and then somehow figure out a way of showing them using the app that doesn't support Tags.

So far I've tried to look at the Finder Status Bar, while in a Tag "folder" to see if there's a path I could paste into the Terminal, and then open up - i.e., a "physical" location for the Tag "Folder". I haven't figured out how. The app that doesn't support Tags does have a way of going into even hidden folders, just by selecting "Go To Folder".

But I'm not sure how to use that knowledge to then dig up where I should inform the app to go.

I've just created a Smart Folder that only shows files Tagged with that specific Tag. However, this seems to be a file with the extension .savedSearch - so I'm not sure how to access that "folder" via the Terminal, figure out it's path and paste that onto the App that doesn't support Tags or Smart Folders.

Also, if I drag a Tag to the Terminal, it will show up as a .savedSearch too, but unfortunately I cannot access that either.

So, how do I organise my files using Tags so that I can access them on apps that have no support for Tags? I don't want to physically move the files around as that will take me months and months to do, time is limited as it is already.

Edit: Nope, I don't want to create tags or smart folders using Terminal, just access them just like if it were a regular folder.

  • 1
    Back in the days before we even had tags, we used to have a naming system e.g. PI-A2-20 etc for Piano at A2, 20 velocity. This would be pre & suffixed with other info, edit version, looped, project, instrument bank, etc. These were then kept inside one similarly named folder per sample set. Sets in projects went one per hard drive, stored in triplicate in different locations. There were lots of Excel sheets logging all this. End result was that to find any specific set you started from the Excel sheet & then just used copy/paste in Finder search once the relevant drive was mounted. – Tetsujin Sep 23 '17 at 9:44
  • 3
    BTW, smart folders aren't real folders, so there's no way to drill into one from an app that doesn't support them. They are, in effect a 'live search', powered at OS-level. – Tetsujin Sep 23 '17 at 9:47
  • 1
    @Tetsujin yep seems that both Smart Folders and Tags are in the end the very same thing. I just dragged a Tag to the Terminal and was awarded with this: /Users/esaruoho/Library/Saved\ Searches/.DockTags/keepers.tag6.savedSearch So Tag is just a fancified version of a Smart Folder, unfortunately. – esaruoho Sep 23 '17 at 9:49
  • Tags are metadata items of files, so if you ask Finder to give you all files tagged "red" it basically searches for them across the filesystem. Which, as you've found out, is the same thing as searching for other stuff. – nohillside Sep 23 '17 at 10:32
  • 1
    What you could do is running a script which uses mdfind to symlink all files with a specific tag into a folder, and then access the files via this folder. – nohillside Sep 23 '17 at 10:33
1

What you could do is running a script which uses mdfind to symlink all files with a specific tag into a folder, and then access the files via this folder.

cd TAG_FOLDER
mdfind -0 kMDItemUserTags="Red" | xargs -0 -n 1 -J % ln -s % .

(Replace "Red" with the name of the tag you are looking for)

If several tagged files have the same name only the first one will get linked (you'll get a warning message for the others). And, of course, the commands needs to be rerun every time you add/remove the tag from a file.

PS: There is a small caveat here. Not all applications handle symlinked files the same way. Test first whether an application writes a changed file back to the original place or just replaces the symlink with the updated version.

PPS:

  • mdfind -0 finds all files/folders matching the query (in this case the tag). The -0 ensures that the string passed to the next command is terminated by an ASCII NUL character (to ensure that file names containing spaces etc get handled correctly)
  • xargs -0 -n 1 -J % reads one line of input to build and execute a command. -J % sets the placeholder for the input line to %
  • ln -s % . symlinks the file/folder in % into the current directory (.)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .