Welcome Guest

Pages: 1 2 3
Actions FLAC to ALC Import (Music App)
dr01dyPostFebruary 26, 2020, 19:01
Newbie
Posts: 18
Registered:
November 24, 2019, 20:49
Hot topicActions FLAC to ALC Import (Music App)

Hi Folks,

Wondering if anyone have any good actions where I can convert FLAC to ALAC (Apple Lossless) once completed import into the new Apple Music App.

I was looking at the samples on the page and didn't see anything that fit the bill.

Much appreciated!

- Jeff

2MR2PostFebruary 27, 2020, 11:08
Avatar photo
Administrator
Posts: 2085
Registered:
August 23, 2012, 19:27
Hot topicRe: Actions FLAC to ALC Import (Music App)

I've written an action which uses XLD to convert the files. It is entirely probable that other converters will work as well. XLD was chosen as its free and has a CLI interface which can be called. While a Mac application can be called, CLI is far better as Yate can hold until the conversion is done. The application prompts for a folder to be the 'root' of the new files. The destination root must be disjoint from the source root passed to the batch processor. The process is as follows:

- call XLD to re-encode a FLAC file to ALAC. in place.
- metadata from the source file is copied to the new ALAC file. Most convertors have issues with copying some metadata. XLD doesn't like FLAC tags with spaces....it inserts underscore characters.
- the file is moved to exactly the same position in the destination. All intervening folders are preserved
- the file is added to to iTunes/Music

If this sounds okay let me know and I'll post the action.

dr01dyPostFebruary 27, 2020, 12:16
Newbie
Posts: 18
Registered:
November 24, 2019, 20:49
Hot topicRe: Actions FLAC to ALC Import (Music App)

Yes! - that would be spot on. Would there be a way for me to import that function at the end of my file?

I would like to make the conversion and put into iTunes/Music and take the .Flac after renamed and backup to /Volumes/GoogleDrive/media/Music

<?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>RenameTemplates</key>
<array>
<dict>
<key>mask</key>
<integer>512</integer>
<key>name</key>
<string>music-Track2-Title</string>
<key>template</key>
<array>
<string>⇉Disc Smart Pad</string>
<string> - </string>
<string>⇉Track Pad2</string>
<string> - </string>
<string>⇉Title</string>
</array>
</dict>
</array>
<key>Rules</key>
<array>
<dict>
<key>ActionFolder</key>
<string></string>
<key>actions</key>
<array>
<dict>
<key>actions</key>
<array>
<dict>
<key>code</key>
<integer>35</integer>
<key>text1</key>
<string>Sample action to move files to the following folder structure:

root/Album Artist/Album/## Title

All path components other than 'root' are forced to be Latin-1. This ensures that the files van be placed in m3u, as opposed to m3u8, files.

NOTE THAT YOU MUST CHANGE THE BASE PATH IN THE MOVE STATEMENT!!!!!</string>
</dict>
<dict>
<key>code</key>
<integer>120</integer>
</dict>
<dict>
<key>code</key>
<integer>35</integer>
<key>text1</key>
<string>----- Start of statements to be removed</string>
</dict>
<dict>
<key>code</key>
<integer>35</integer>
<key>text1</key>
<string>----- End of statements to be removed</string>
</dict>
<dict>
<key>code</key>
<integer>120</integer>
</dict>
<dict>
<key>code</key>
<integer>35</integer>
<key>text1</key>
<string>We're possibly modifying the path components, so move Album Artist and Album into Variables.</string>
</dict>
<dict>
<key>code</key>
<integer>7</integer>
<key>list1</key>
<array>
<integer>2</integer>
</array>
<key>list2</key>
<array>
<integer>94</integer>
</array>
<key>mask</key>
<integer>0</integer>
</dict>
<dict>
<key>code</key>
<integer>120</integer>
</dict>
<dict>
<key>code</key>
<integer>12</integer>
<key>list1</key>
<array>
<integer>3</integer>
</array>
<key>text1</key>
<string>/</string>
<key>text2</key>
<string>-</string>
</dict>
<dict>
<key>code</key>
<integer>12</integer>
<key>list1</key>
<array>
<integer>3</integer>
</array>
<key>text1</key>
<string>.</string>
<key>text2</key>
<string>-</string>
</dict>
<dict>
<key>code</key>
<integer>120</integer>
</dict>
<dict>
<key>code</key>
<integer>7</integer>
<key>list1</key>
<array>
<integer>3</integer>
</array>
<key>list2</key>
<array>
<integer>101</integer>
</array>
<key>mask</key>
<integer>0</integer>
</dict>
<dict>
<key>code</key>
<integer>120</integer>
</dict>
<dict>
<key>code</key>
<integer>72</integer>
<key>mask</key>
<integer>772</integer>
</dict>
<dict>
<key>code</key>
<integer>35</integer>
<key>text1</key>
<string>Force the variables to be Latin-1</string>
</dict>
<dict>
<key>code</key>
<integer>172</integer>
<key>list1</key>
<array>
<integer>94</integer>
<integer>101</integer>
<integer>102</integer>
</array>
<key>mask</key>
<integer>7</integer>
</dict>
<dict>
<key>code</key>
<integer>120</integer>
</dict>
<dict>
<key>code</key>
<integer>17</integer>
<key>mask</key>
<integer>0</integer>
</dict>
<dict>
<key>code</key>
<integer>2</integer>
<key>mask</key>
<integer>0</integer>
<key>sizeindex</key>
<integer>0</integer>
<key>template</key>
<string></string>
</dict>
<dict>
<key>code</key>
<integer>39</integer>
<key>list1</key>
<array>
<integer>6</integer>
</array>
<key>list2</key>
<array>
<integer>103</integer>
</array>
<key>list3</key>
<array>
<integer>3</integer>
</array>
<key>mask</key>
<integer>83984</integer>
<key>template</key>
<string>music-Track2-Title</string>
<key>text1</key>
<string>/Volumes/GoogleDrive/My Drive/media/data/concert-music/\[Artist]</string>
<key>text3</key>
<string></string>
<key>text4</key>
<string></string>
<key>text5</key>
<string></string>
</dict>
<dict>
<key>code</key>
<integer>232</integer>
<key>disabled</key>
<string></string>
<key>list1</key>
<array>
<integer>6</integer>
</array>
<key>list2</key>
<array>
<integer>103</integer>
</array>
<key>list3</key>
<array>
<integer>3</integer>
</array>
<key>mask</key>
<integer>10256</integer>
<key>template</key>
<string>Track2-Title</string>
<key>text1</key>
<string>/Volumes/GoogleDrive/My Drive/media/data/concert-music/\[Artist]</string>
<key>text3</key>
<string></string>
<key>text4</key>
<string></string>
<key>text5</key>
<string></string>
</dict>
<dict>
<key>code</key>
<integer>99</integer>
<key>mask</key>
<integer>262144</integer>
<key>text1</key>
<string></string>
<key>text2</key>
<string></string>
</dict>
</array>
<key>allfiles</key>
<true/>
<key>date</key>
<date>2020-02-24T19:52:54Z</date>
<key>hidden</key>
<false/>
<key>menu</key>
<integer>0</integer>
<key>name</key>
<string>music-Jeff- Concert Action</string>
<key>priority</key>
<integer>0</integer>
<key>tag</key>
<integer>22</integer>
</dict>
</array>
<key>name</key>
<string>~/Downloads</string>
</dict>
</array>
<key>build</key>
<string>8600</string>
<key>prefsVersion</key>
<string>8594</string>
<key>version</key>
<string>5.1.1.2</string>
</dict>
</plist>

2MR2PostFebruary 27, 2020, 16:55
Avatar photo
Administrator
Posts: 2085
Registered:
August 23, 2012, 19:27
Hot topicRe: Actions FLAC to ALC Import (Music App)

I can't interpret the plist file contents. I uploaded an action named ALAC File to FLAC. It's on the resources web page.

The action is designed to be run through the Batch Processor and performs lots of sanity checks. I suggest that you run it standalone. Whatever your action does can be done in a separate pass. Alternately, you can look at the source of the action and copy and paste portions of it into yours if you wish.

dr01dyPostFebruary 27, 2020, 17:08
Newbie
Posts: 18
Registered:
November 24, 2019, 20:49
Hot topicRe: Actions FLAC to ALC Import (Music App)

Thank you so much. This is a game changer, sir!

dr01dyPostFebruary 27, 2020, 20:21
Newbie
Posts: 18
Registered:
November 24, 2019, 20:49
Hot topicRe: Actions FLAC to ALC Import (Music App)

What do you need to place in /Users/jlloyd/Library/Application Support/Yate/xld does not exist

drwxr-xr-x 19 jlloyd staff 608 Feb 27 18:19 .
drwx------+ 77 jlloyd staff 2464 Feb 27 18:13 ..
-rw-r--r-- 1 jlloyd staff 113514 Jan 8 09:56 Backup 2020-01-08-09-56-14.plist
-rw-r--r-- 1 jlloyd staff 113309 Jan 9 08:37 Backup 2020-01-09-08-37-23.plist
-rw-r--r-- 1 jlloyd staff 113830 Jan 21 08:15 Backup 2020-01-21-08-15-05.plist
-rw-r--r-- 1 jlloyd staff 113903 Jan 22 10:00 Backup 2020-01-22-10-00-58.plist
-rw-r--r-- 1 jlloyd staff 113903 Jan 26 20:42 Backup 2020-01-26-20-42-10.plist
-rw-r--r-- 1 jlloyd staff 112879 Feb 24 12:30 Backup 2020-02-24-12-30-19.plist
-rw-r--r-- 1 jlloyd staff 113428 Feb 24 12:30 Backup 2020-02-24-12-30-36.plist
-rw-r--r-- 1 jlloyd staff 113683 Feb 24 12:36 Backup 2020-02-24-12-36-25.plist
-rw-r--r-- 1 jlloyd staff 113807 Feb 24 12:37 Backup 2020-02-24-12-37-32.plist
-rw-r--r-- 1 jlloyd staff 133017 Feb 27 09:34 Backup 2020-02-27-09-34-55.plist
-rw-r--r--@ 1 jlloyd staff 488 Feb 27 18:18 BatchProcessorLog.txt
-rw-r--r--@ 1 jlloyd staff 0 Feb 27 18:18 BatchProcessorTrace.txt
-rw-r--r-- 1 jlloyd staff 87047 Feb 18 11:49 Stub.mp3
-rw-r--r--@ 1 jlloyd staff 60 Feb 27 18:19 YateXLD.yatesh
drwxr-xr-x 4 jlloyd staff 128 Nov 23 13:26 bin
drwxr-xr-x 2 jlloyd staff 64 Nov 23 13:25 players
drwxr-xr-x@ 3 jlloyd staff 96 Oct 4 04:51 xld.app

dr01dyPostFebruary 27, 2020, 20:53
Newbie
Posts: 18
Registered:
November 24, 2019, 20:49
Hot topicRe: Actions FLAC to ALC Import (Music App)

RTFM, Jeff 🙂 I got it.. I will report back shortly.

2MR2PostFebruary 27, 2020, 20:53
Avatar photo
Administrator
Posts: 2085
Registered:
August 23, 2012, 19:27
Hot topicRe: Actions FLAC to ALC Import (Music App)

Download xld from: https://sourceforge.net/projects/xld/

Run the DMG.

Drag the fancy XLD icon to /Applications.
Open the CLI folder and drag xld (not XLD.app) to /Users/jlloyd/Library/Application Support
remove xld.app from /Users/jlloyd/Library/Application Support

dr01dyPostFebruary 27, 2020, 21:56
Newbie
Posts: 18
Registered:
November 24, 2019, 20:49
Hot topicRe: Actions FLAC to ALC Import (Music App)

I got all that working but every time I run the batch and select something from /Users/jlloyd/Desktop/decode to end save to /Users/jlloyd/Music/Music/Media/Automatically Add to Music.localized it fails with auto-save on and off.

Yate Version 5.1.1.2 (8600)

Batch processing started Thursday, February 27, 2020 at 7:53:17 PM Mountain Standard Time

Root action: FLAC files to ALAC
Root folder: /Users/jlloyd/Desktop/torrent_temp/Umphrey's McGee 2020-01-17 New York, NY [FLAC-HD] [16-48]

--------------------
Folder: /Users/jlloyd/Desktop/torrent_temp/Umphrey's McGee 2020-01-17 New York, NY [FLAC-HD] [16-48]
***** XLD failed for /Users/jlloyd/Desktop/torrent_temp/Umphrey's McGee 2020-01-17 New York, NY [FLAC-HD] [16-48]/um200117d1_01_Unsung_Hero.flac
***** XLD failed for /Users/jlloyd/Desktop/torrent_temp/Umphrey's McGee 2020-01-17 New York, NY [FLAC-HD] [16-48]/um200117d1_02_JaJunk.flac
***** XLD failed for /Users/jlloyd/Desktop/torrent_temp/Umphrey's McGee 2020-01-17 New York, NY [FLAC-HD] [16-48]/um200117d1_03_Ocean_Billy.flac
***** XLD failed for /Users/jlloyd/Desktop/torrent_temp/Umphrey's McGee 2020-01-17 New York, NY [FLAC-HD] [16-48]/um200117d1_04_Speak_Up.flac
***** XLD failed for /Users/jlloyd/Desktop/torrent_temp/Umphrey's McGee 2020-01-17 New York, NY [FLAC-HD] [16-48]/um200117d1_05_Wizard_Burial_Ground.flac
***** XLD failed for /Users/jlloyd/Desktop/torrent_temp/Umphrey's McGee 2020-01-17 New York, NY [FLAC-HD] [16-48]/um200117d1_06_Deeper.flac
***** XLD failed for /Users/jlloyd/Desktop/torrent_temp/Umphrey's McGee 2020-01-17 New York, NY [FLAC-HD] [16-48]/um200117d1_07_Den.flac
***** XLD failed for /Users/jlloyd/Desktop/torrent_temp/Umphrey's McGee 2020-01-17 New York, NY [FLAC-HD] [16-48]/um200117d1_08_Wizard_Burial_Ground.flac
***** XLD failed for /Users/jlloyd/Desktop/torrent_temp/Umphrey's McGee 2020-01-17 New York, NY [FLAC-HD] [16-48]/um200117d1_09_Anthem.flac
***** XLD failed for /Users/jlloyd/Desktop/torrent_temp/Umphrey's McGee 2020-01-17 New York, NY [FLAC-HD] [16-48]/um200117d2_01_Suxity.flac
***** XLD failed for /Users/jlloyd/Desktop/torrent_temp/Umphrey's McGee 2020-01-17 New York, NY [FLAC-HD] [16-48]/um200117d2_02_JaJunk.flac
***** XLD failed for /Users/jlloyd/Desktop/torrent_temp/Umphrey's McGee 2020-01-17 New York, NY [FLAC-HD] [16-48]/um200117d2_03_Breaker.flac
***** XLD failed for /Users/jlloyd/Desktop/torrent_temp/Umphrey's McGee 2020-01-17 New York, NY [FLAC-HD] [16-48]/um200117d2_04_Wappy_Sprayberry.flac
***** XLD failed for /Users/jlloyd/Desktop/torrent_temp/Umphrey's McGee 2020-01-17 New York, NY [FLAC-HD] [16-48]/um200117d2_05_Mulches_Odyssey.flac
***** XLD failed for /Users/jlloyd/Desktop/torrent_temp/Umphrey's McGee 2020-01-17 New York, NY [FLAC-HD] [16-48]/um200117d3_01_Half_Delayed.flac
***** XLD failed for /Users/jlloyd/Desktop/torrent_temp/Umphrey's McGee 2020-01-17 New York, NY [FLAC-HD] [16-48]/um200117d3_02_It_Doesnt_Matter.flac
***** XLD failed for /Users/jlloyd/Desktop/torrent_temp/Umphrey's McGee 2020-01-17 New York, NY [FLAC-HD] [16-48]/um200117d3_03_Weight_Around.flac
***** XLD failed for /Users/jlloyd/Desktop/torrent_temp/Umphrey's McGee 2020-01-17 New York, NY [FLAC-HD] [16-48]/um200117d3_04_The_Silent_Type.flac

--------------------

Folders scanned: 1
Folders with audio: 1
Files Processed: 18

Run completed at Thursday, February 27, 2020 at 7:53:28 PM Mountain Standard Time
Run duration: 00:00:11

2MR2PostFebruary 27, 2020, 22:54
Avatar photo
Administrator
Posts: 2085
Registered:
August 23, 2012, 19:27
Hot topicRe: Actions FLAC to ALC Import (Music App)

Hmm. I'm assuming that XLD.app has been placed in the Applications folder.

The files you're running are in a folder on the desktop. Try running the XLD application directly and see if it can convert those files. Perhaps it's a privilege issue. Set the XLD settings as in the attached image.

If that doesn't turn anything up download:

https://2manyrobots.com/actions/FLAC-ALAC-1-1.zip

Unzip and import the plist file into Yate. A new action named 'FLAC files to ALAC v1.1' will be present. This version has additional logging if the generated script which runs XLD fails.

Image

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