Open dstaley opened 6 years ago
This one has me a bit stumped. I haven't reached a solution yet. Stay tuned...
Hmm...
It looks like setting iTunes track artwork is something like the "third rail" of the Scripting Bridge. There's an old thread on CocoaBuilder that basically concludes that you must resort to AppleScript for this task. See http://www.cocoabuilder.com/archive/cocoa/199978-setting-itunes-album-art-with-scriptingbridge.html#200000.
I'm close to officially giving up on this one, but I'll probably poke at it a bit more.
Hello!
First off, thank you for creating SwiftScripting! I've been banging my head against a wall trying to find a reasonable way to script my iTunes library, so I'm incredibly thankful for the work you've put into this.
I'm reasonably new to Scripting Bridge, so I'm not sure if this issue is with SB or with SwiftScripting or with my application code.
Basically, I'm trying to add album art to tracks in iTunes.
My script is (essentially) this:
When I run this script, I get the following error
From what I understand, SB objects need to be immediately added to their container before you can set properties on them. However, as far as I know, I'm doing just that. I mimicked the exact same structure with adding a playlist and it worked correctly, so I'm fairly sure I'm invoking it in the right way.