Match all tags

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

Moderator: Mr_Noodle

Match all tags Thu Jul 11, 2019 3:52 pm • by stsch83
Hi,

sorry for my english, i'm from germany.

If i can my papers, i tag them with specific tag. In hazel i want to match these tags (all of the file) and put them to the name of the file. But i can not match all the tags. I only can match the first tag of the file. Is there a solution to match all the tags of the file.

BR,
Stefan
stsch83
 
Posts: 10
Joined: Thu Jul 11, 2019 3:49 pm

Re: Match all tags Fri Jul 12, 2019 10:36 am • by Mr_Noodle
You shouldn't need to match the tags. In the Rename action, use the Tags attribute which should dump them all into the name. Note that you won't be able to control the ordering of the tags.
Mr_Noodle
Site Admin
 
Posts: 8110
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Match all tags Fri Jul 12, 2019 11:34 am • by stsch83
Can you explain me witch i should use to match all tags. At the moment is tryed it with Tags ->contain match -> Custom Text -> Name=tags and Anything. If i use this i only get the first tag and not all.
stsch83
 
Posts: 10
Joined: Thu Jul 11, 2019 3:49 pm

Re: Match all tags Mon Jul 15, 2019 11:26 am • by Mr_Noodle
I guess I'm unclear on what you are trying to do then. Can you provide a concrete example?
Mr_Noodle
Site Admin
 
Posts: 8110
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Match all tags Tue Jul 16, 2019 2:55 pm • by stsch83
Hi,

i have a pdf file "myfile.pdf", witch has same tags (mac) like "my_name" and "invoice" or "insurance".
Now i want to match all these tags and rename the "myfile.pdf" for example to "myfile (my_name invoice).pdf".

So i want to match all tags and put them in the name of the file.

I hope it clear what i to do.

BR,
Stefan
stsch83
 
Posts: 10
Joined: Thu Jul 11, 2019 3:49 pm

Re: Match all tags Wed Jul 17, 2019 11:54 am • by Mr_Noodle
How do you need to match them? If you are just using, say, the first tag and second tag, regardless of what they are, then you can just use the tags attribute twice in the Rename action, specifying using the 1st, then 2nd item.
Mr_Noodle
Site Admin
 
Posts: 8110
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Match all tags Thu Jul 18, 2019 12:49 am • by stsch83
Can you explain me, what option i should use to get the 1st, 2nd, ... tag to rename my file.
stsch83
 
Posts: 10
Joined: Thu Jul 11, 2019 3:49 pm

Re: Match all tags Thu Jul 18, 2019 12:18 pm • by Mr_Noodle
In the Rename action, drag in "Other" and selected "Tags" in the list. Next, click on the "Tags" token to open the menu. There are built-in options to select the first or last item. You can also use "Select list item" to select other items in the list (like 2nd).
Mr_Noodle
Site Admin
 
Posts: 8110
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Match all tags Thu Jul 18, 2019 3:26 pm • by stsch83
hi, in the german version of hazel there is not entry "tags" in others. I tryed it with "schlagwörter" or "schlagworte" but i get no tag in the name of the file.

Here is my logfile:

ttempted to run worker on undeployed folder: /Volumes/documents/01_ScansMitDatum.
2019-07-18 19:39:11.521 hazelworker[39381] Running worker (v4.3.5) for folder with identifier: 855638023-3500220.
2019-07-18 19:39:11.523 hazelworker[39381] ###main load address: 0x1095da000
2019-07-18 19:39:11.523 hazelworker[39381] ###Noodle load address: 0x1096f8000
2019-07-18 19:39:11.523 hazelworker[39381] ###CK load address: 0x1096be000
2019-07-18 19:39:11.553 hazelworker[39381] Processing folder 01_ScansMitDatum (forced)
2019-07-18 19:39:13.606 hazelworker[39381] 2017-11 [][].pdf: Rule TagsInName matched.
2019-07-18 19:39:13.617 hazelworker[39381] [File Event] File renamed: /Volumes/documents/01_ScansMitDatum/2017-11 [][].pdf renamed to /Volumes/documents/01_ScansMitDatum/2017-11 [][][].pdf.
2019-07-18 19:39:13.630 hazelworker[39381] [File Event] File moved: 2017-11 [][][].pdf moved from folder /Volumes/documents/01_ScansMitDatum to folder /Volumes/documents/02_ScansMitTags.
2019-07-18 19:39:13.665 hazelworker[39381] Received abort event.
2019-07-18 19:39:15.671 hazelworker[39381] Received abort event.
2019-07-18 19:39:15.674 hazelworker[39381] Done processing folder 01_ScansMitDatum
2019-07-18 19:39:35.566 HazelHelper[444] Attempted to run worker on undeployed folder: /Volumes/documents/01_ScansMitDatum.
stsch83
 
Posts: 10
Joined: Thu Jul 11, 2019 3:49 pm

Re: Match all tags Fri Jul 19, 2019 9:29 am • by stsch83
my Settings:

If all
Kind is pdf
Tags is not blank
Do the following...
Rename with padden name[schlagwörter]extention
Move to folder: 02_ScanMitTags
stsch83
 
Posts: 10
Joined: Thu Jul 11, 2019 3:49 pm

Re: Match all tags Fri Jul 19, 2019 12:23 pm • by Mr_Noodle
I don't know what it would be in German but try doing "Other" in the condition popup and see if tags show up there. Then preview the rule and see what the value for tags is.
Mr_Noodle
Site Admin
 
Posts: 8110
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Match all tags Fri Jul 19, 2019 1:25 pm • by stsch83
yes thats right. i think i select the wrong item in others
Last edited by stsch83 on Fri Jul 19, 2019 1:31 pm, edited 1 time in total.
stsch83
 
Posts: 10
Joined: Thu Jul 11, 2019 3:49 pm

Re: Match all tags Fri Jul 19, 2019 1:31 pm • by stsch83
when i use the rule:
tag -> contain match -> anythink i can see all the tags from the file when i click on the green check button after preview. But these words will not be shown in the option "schlagwörter" or "schlageworte" in others.
stsch83
 
Posts: 10
Joined: Thu Jul 11, 2019 3:49 pm

Re: Match all tags Sun Jul 21, 2019 1:52 pm • by Robert
I use the german OsX and it works perfectly well.
For what you try to accomplish you don't need contain match. Just enter something that triggers the file you want to rename.
Under the rename panel, "other", "Schlagworte" is the right one. If you don't change anything, it takes all tags.
Image

if you want specific ones, you can define which ones here:

Image

Image
"Behind all the inhuman aspects of automation (...) its real possibilities appear: the genesis of a technological world in which man can finally withdraw from (...) the apparatus of his labor – in order to experiment freely with it." /Marcuse
Robert
 
Posts: 52
Joined: Sun Dec 16, 2018 8:05 am

Re: Match all tags Sun Jul 21, 2019 2:00 pm • by stsch83
I found the error but do not found a solution. My files are on a NAS!!! When i use the rename on my mac, it works. But if i use the rename on my nas it wont work. Any idea???
stsch83
 
Posts: 10
Joined: Thu Jul 11, 2019 3:49 pm

Next

Return to Support