Welcome Guest

Pages: 1
Finder tags to rating field
angangPostJune 18, 2015, 19:12
Beginner
Posts: 25
Registered:
August 23, 2013, 03:38
Normal topicFinder tags to rating field

Hello,

I have tried to save finder tags to variable 0 and copy the variable 0 to the Mood field but there is nothing written.

What i would like is :

save finder tags to variable

if variable content = green
convert red to 5 then copy to rating field
if variable content = yellow
convert red to 4 then copy to rating field
if variable content = red
convert red to 3 then copy to rating field
if variable content = grey
convert red to 2 then copy to rating field

If it is not possible could you tell me why the mood field is empty since the finder tag is red for my test ?

Thank you very much

2MR2PostJune 18, 2015, 21:09
Avatar photo
Administrator
Posts: 2364
Registered:
August 23, 2012, 19:27
Normal topicRe: Finder tags to rating field

I'm assuming you're on OS X 10.9 or greater as the Finder Tags function will not work on 10.8 and lower. I've created the following action on Yate v3.7 which was released today and I'm running on 10.10.

I've made the following assumptions:

- Mood is always set to the Finder tags.
- Rating is not changed unless at least one of green, red, yellow or gray is in the Finder tags.
- If more than one colour is in the Finder tags, the highest associated rating value is used.
- Any matched colour tag is removed from the Finder tags.
- Any Finder tag other than green, red, yellow or gray is not modified.
- I'm not sure about regional settings but on my Mac the monochrome tag is "Gray" not "Grey".
- You have to remember that the Finder tags are returned as a list with items separated by newline characters.
- When saving the original tags to Mood, I replace the \n character with a comma.

The following action works for me:

Force Grouped Execution
Save Finder tags to Variable 1
Copy the Variable 1 field to the Mood field
Replace "\n" in the Mood field with ","
Set Variable 2 to "gray,red,yellow,green"
Set Variable 4 to "1"
Repeat With Variable 5 for the list in field Variable 2 (Initial) string delimiter "," Run inline action 'Look for Finder Tags' grouped

Start Look for Finder Tags
Increment Variable 4
Test if the list in field Variable 1 delimiter "\n" contains '\v5' case insensitive remove
if true
Set the Rating field to "\v4"
Set Finder tags from Variable 1
endif

If you want to download the action it can be found at:

http://2manyrobots.com/actions/FinderTagsToRatings.zip

Unzip it and import it.

If you have not yet installed v3.7 do a "Check for Updates" and install the new release. Nothing in the action is new to 3.7 but v3.7 preferences are not backwards compatible.

2MR2PostJune 18, 2015, 21:22
Avatar photo
Administrator
Posts: 2364
Registered:
August 23, 2012, 19:27
Normal topicRe: Finder tags to rating field

Be careful, the mailer strips out the backslash characters. 🙂

angangPostJune 21, 2015, 07:03
Beginner
Posts: 25
Registered:
August 23, 2013, 03:38
Normal topicRe: Finder tags to rating field

Thank you so much, this is amazing !

Is it possible to do the same thing with parent folder tags ?

2MR2PostJune 21, 2015, 07:07
Avatar photo
Administrator
Posts: 2364
Registered:
August 23, 2012, 19:27
Normal topicRe: Finder tags to rating field

Unfortunately not. Currently Yate can only read the Finder tags associated with each audio track and not folders. By parent folder, I assume you mean the folder containing the audio files? I can add it to the list of things to look at.

angangPostJune 21, 2015, 07:39
Beginner
Posts: 25
Registered:
August 23, 2013, 03:38
Normal topicRe: Finder tags to rating field

YEs i mean the folder containing the audio files. Thanks to add it, it would be great.

Kindest regards

Pages: 1
Mingle Forum by Cartpauj | Version: 1.1.0beta | Page loaded in: 0.054 seconds.