artwork

Getting artwork from current track in Applescript

杀马特。学长 韩版系。学妹 提交于 2019-11-27 16:55:22
问题 I'm trying to make a script to pull the artwork of the currently playing track and write it to a file. I've checked out a few guides but none of them seem to work, any tips? tell application "iTunes" write artwork 1 to "path:to:desktop" of type("JPEG") end tell To be honest I've no idea what I'm doing. Anyone feeling helpful? Thanks 回答1: You can write raw data of artwork 1 of current track to a file: -- get the raw bytes of the artwork into a var tell application "iTunes" to tell artwork 1 of

Displaying Artwork for .MP3 file

允我心安 提交于 2019-11-26 20:02:59
问题 I am trying to currently display the album artwork for a locally stored .MP3 track in an ImageView. Does anyone know how to fetch this artwork in Swift in order to accomplish this? I have found this solution (iOS AVFoundation: How do I fetch artwork from an mp3 file?) but the code is written in Objective C. I simply want to grab the image embedded in my MP3 and display it in my ImageView. I've looked at the API documentation for the MPMediaItemArtwork and found an example that also