Welcome Guest

Pages: 1
File to Tag > Variables > Action > Set
noforkerPostAugust 9, 2017, 16:17
Newbie
Posts: 17
Registered:
July 25, 2016, 01:03
Normal topicFile to Tag > Variables > Action > Set

I am attempting to create an action to process files I've purchased from DGM Live. They name their files like this: kc19940928-0101-VROOOM.flac. So, I have a File to Tag template setup up like this: ❨Variable 0❩\?-❨Variable 1❩\?-❨Title❩. I call this File to Tag template in an action. I copy Variable 0 to a named variable called "Year," and remove the "kc" from the beginning of it. I then copy Variable 1 to a named variable called "Disc".

I've been able to get the "Year" variable to add " [Live 9/28/1994]" to the end of the titles after processing by inserting a "-" and then splitting the variable with "-" as the delimiter. I repeat this method to get the month and date.

I've attempted to get the same results with the "Disc" variable. I'm inserting a "-" at index 2, which would give me "01-01". I would then split this with "-" as the delimiter and save the right side as the track number. However, I'm getting Disc 1 and Track 1 for every track even though the file numbers increment. What am I missing?

The function I'm using to set the disc and track is "Set" with \<Disc> and \<Track>. One Set function for the Disc field with \<Disc> and another Set function for the Track field with \<Track>.

I've processed files that have different performance dates, and the dates in the titles always process correctly, but I can never get the disc or track to give me anything but 1 and 1. As always, any help would be appreciated.

Neil

2MR2PostAugust 9, 2017, 16:39
Avatar photo
Administrator
Posts: 2079
Registered:
August 23, 2012, 19:27
Normal topicRe: File to Tag > Variables > Action > Set

If you go to the Action Manager, select your action, do a right click and from the context menu do a Smart Export, the action and all used Yate items (such as the FTT template) will be exported. If you send me the exported plist file, I can take a look. It's far easier than figuring it without the code 🙂

noforkerPostAugust 9, 2017, 16:46
Newbie
Posts: 17
Registered:
July 25, 2016, 01:03
Normal topicRe: File to Tag > Variables > Action > Set

Here is the plist file.

noforkerPostAugust 9, 2017, 16:48
Newbie
Posts: 17
Registered:
July 25, 2016, 01:03
Normal topicRe: File to Tag > Variables > Action > Set

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>FileToTag</key>
<array>
<dict>
<key>name</key>
<string>KCKing Crimson DGMLive Downloads</string>
<key>template</key>
<array>
<string>⇉Variable 0</string>
<string>\?-</string>
<string>⇉Variable 1</string>
<string>\?-</string>
<string>⇉Title</string>
</array>
<key>text</key>
<string>❨Variable 0❩\?-❨Variable 1❩\?-❨Title❩</string>
</dict>
</array>
<key>Rules</key>
<array>
<dict>
<key>actions</key>
<array>
<dict>
<key>code</key>
<integer>18</integer>
<key>template</key>
<string>KCKing Crimson DGMLive Downloads</string>
</dict>
<dict>
<key>code</key>
<integer>141</integer>
<key>list1</key>
<array>
<integer>105</integer>
</array>
<key>text1</key>
<string>Year</string>
</dict>
<dict>
<key>code</key>
<integer>141</integer>
<key>list1</key>
<array>
<integer>94</integer>
</array>
<key>text1</key>
<string>Disc</string>
</dict>
<dict>
<key>code</key>
<integer>73</integer>
<key>mask</key>
<integer>0</integer>
<key>text1</key>
<string>2</string>
<key>text2</key>
<string>0</string>
<key>text3</key>
<string>-</string>
<key>text4</key>
<string>4</string>
<key>text5</key>
<string>Year</string>
</dict>
<dict>
<key>code</key>
<integer>144</integer>
<key>mask</key>
<integer>64</integer>
<key>text1</key>
<string>-</string>
<key>text2</key>
<string>Year</string>
<key>text3</key>
<string>Month</string>
</dict>
<dict>
<key>code</key>
<integer>73</integer>
<key>mask</key>
<integer>0</integer>
<key>text1</key>
<string></string>
<key>text2</key>
<string></string>
<key>text3</key>
<string>-</string>
<key>text4</key>
<string>2</string>
<key>text5</key>
<string>Month</string>
</dict>
<dict>
<key>code</key>
<integer>144</integer>
<key>mask</key>
<integer>64</integer>
<key>text1</key>
<string>-</string>
<key>text2</key>
<string>Month</string>
<key>text3</key>
<string>Date</string>
</dict>
<dict>
<key>code</key>
<integer>73</integer>
<key>mask</key>
<integer>0</integer>
<key>text1</key>
<string></string>
<key>text2</key>
<string></string>
<key>text3</key>
<string>-</string>
<key>text4</key>
<string>2</string>
<key>text5</key>
<string>Disc</string>
</dict>
<dict>
<key>code</key>
<integer>144</integer>
<key>mask</key>
<integer>64</integer>
<key>text1</key>
<string>-</string>
<key>text2</key>
<string>Disc</string>
<key>text3</key>
<string>Track</string>
</dict>
<dict>
<key>code</key>
<integer>113</integer>
<key>mask</key>
<integer>4096</integer>
<key>text1</key>
<string>Month</string>
</dict>
<dict>
<key>code</key>
<integer>113</integer>
<key>mask</key>
<integer>4096</integer>
<key>text1</key>
<string>Date</string>
</dict>
<dict>
<key>code</key>
<integer>113</integer>
<key>mask</key>
<integer>4096</integer>
<key>text1</key>
<string>Disc</string>
</dict>
<dict>
<key>code</key>
<integer>113</integer>
<key>mask</key>
<integer>4096</integer>
<key>text1</key>
<string>Track</string>
</dict>
<dict>
<key>code</key>
<integer>14</integer>
<key>list1</key>
<array>
<integer>5</integer>
</array>
<key>text1</key>
<string>\<Disc></string>
</dict>
<dict>
<key>code</key>
<integer>14</integer>
<key>list1</key>
<array>
<integer>4</integer>
</array>
<key>text1</key>
<string>\<Track></string>
</dict>
<dict>
<key>code</key>
<integer>12</integer>
<key>list1</key>
<array>
<integer>0</integer>
</array>
<key>mask</key>
<integer>0</integer>
<key>text1</key>
<string>_</string>
<key>text2</key>
<string> </string>
</dict>
<dict>
<key>code</key>
<integer>14</integer>
<key>list1</key>
<array>
<integer>0</integer>
</array>
<key>text1</key>
<string>\[Title] [Live \<Month>/\<Date>/\<Year>]</string>
</dict>
</array>
<key>allfiles</key>
<false/>
<key>date</key>
<date>2017-08-09T19:30:02Z</date>
<key>hidden</key>
<false/>
<key>menu</key>
<integer>0</integer>
<key>name</key>
<string>KCProcess "kcYYYYMMDD-ddtt-Title" Files</string>
<key>tag</key>
<integer>0</integer>
</dict>
</array>
<key>build</key>
<string>5839</string>
<key>prefsVersion</key>
<string>5829</string>
<key>version</key>
<string>3.16.2.3</string>
</dict>
</plist>

2MR2PostAugust 9, 2017, 16:51
Avatar photo
Administrator
Posts: 2079
Registered:
August 23, 2012, 19:27
Normal topicRe: File to Tag > Variables > Action > Set

Yah, unfortunately the plist does not upload correctly on the forum. Can you please email it to support@2manyrobots.com

noforkerPostAugust 9, 2017, 16:54
Newbie
Posts: 17
Registered:
July 25, 2016, 01:03
Normal topicRe: File to Tag > Variables > Action > Set

Sent via email…

2MR2PostAugust 9, 2017, 16:58
Avatar photo
Administrator
Posts: 2079
Registered:
August 23, 2012, 19:27
Normal topicRe: File to Tag > Variables > Action > Set

got it 🙂

2MR2PostAugust 9, 2017, 18:55
Avatar photo
Administrator
Posts: 2079
Registered:
August 23, 2012, 19:27
Normal topicRe: File to Tag > Variables > Action > Set

The action was sound. Just a tiny tweak to get it working.

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