OSX tags from terminal/console
No script is needed to accomplish that. Simply use mdfind 'kMDItemUserTags=&lt;tag&gt;'to find all items with the tag &lt;tag&gt;.

In your case that's mdfind 'kMDItemUserTags=Music'.

If you want to restrict the search to a special directory use:

mdfind 'kMDItemUserTags=Music' -onlyin /path/to/folder


e.g.

mdfind 'kMDItemUserTags=Music' -onlyin ~/Music/Classical\ Music/Сергей\ Сергеевич\ Прокофьев