Project Updates for 7/26/2018

Today I got Bluetooth audio working. I just followed this guide and aside from a misspelling or two, it went pretty smoothly. I wasn't able to get it to play over command line using SSH, but it did play after I installed VLC and double-clicked the MP3 file, which is good enough for me.

A while back, I had discovered that you could download Lynda.com videos with youtube-dl, which placed stuff unsorted. I created an AppleScript script that would go the the Lynda website, get the list of files in the course and sort and rename all of the files accordingly. Over time, I got it working 100% perfectly. It was quite elegant in that it used jQuery that was loaded as part of their webpage to do a log of the heavy lifting. Also, I set a folder label to a color based on the course difficulty. I ended up downloading a bunch of courses from a trial.

So I went to load some files into VLC and it was sorting them wrong and I realized a playlist was just what I needed. Just for fun, I decided to write another AppleScript that recursively goes through each folder and checks if that label is set to determine if it's a course folder or a sorting folder. I could have also checked the name as well since they are prefixed, but this worked fine. So if it was a course folder, it would create an M3U file and sort the list by a numeric index that I prefixed to each file and folder. The hardest part was coming up with a way where 2 was sorted before 10 and so on. There were other scripts out there that created M3U files, but as far as I could find, mine was the only one to include the running time of each video file. Anyways, I finished the script and it worked beautifully. The next step would be to integrate it into the main sorting script, which would be much easier than the way I just did it.

Hopefully I'll do a bunch more calculator stuff tomorrow since that's when a bunch of parts orders are coming.

Posted in Old Posts 26 Jul 2018