Avatar photo

Welcome Guest

Pages: 1
Copy Artist and Album to clipboard action
Gary-SwiftPostFebruary 4, 2023, 06:59
Avatar photo
Beginner
Posts: 26
Registered:
April 29, 2014, 06:12
Normal topicCopy Artist and Album to clipboard action

I have being trying to create an action that will copy the album artist and album fields (separated with a space) to the clipboard.

I have been able to do this for each individual field but I can't figure out how to combine two fields.

Any ideas?

Gary-SwiftPostFebruary 4, 2023, 07:23
Avatar photo
Beginner
Posts: 26
Registered:
April 29, 2014, 06:12
Normal topicCopy Artist and Album to clipboard action

I figured it out! I knew it would be possible.

This is what my action looks like in case it helps anyone else:

Image

Start with copy function and save to a named var. Use the append feature to add values to this. Copy it to the clipboard.

2MR2PostFebruary 4, 2023, 09:57
Avatar photo
Administrator
Posts: 2086
Registered:
August 23, 2012, 19:27
Normal topicCopy Artist and Album to clipboard action

Looks good.

FYI: When you have multiple appends or prepends to do, you can usually compress it into a single statement by using escape sequences.

Set named variable 'search' to "\[Album Artist] \[Album] \[Year]"

In Yate, escape sequences are your friends. The three fields in the statement above were inserted from the context menu's Insert Yate Field submenu

Gary-SwiftPostFebruary 6, 2023, 11:44
Avatar photo
Beginner
Posts: 26
Registered:
April 29, 2014, 06:12
Normal topicCopy Artist and Album to clipboard action

Set named variable 'search' to "\[Album Artist] \[Album] \[Year]"

Very good. I've tried it this way and it works. It seems much tidier and easier to add a conditional statement to use Artist if Album Artist is empty. Yate is the Swiss army knife of apps 😀

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