i used my close to zero apple script knowledge to create this Frankenstein of a script
tell application "Music"
set myArtwork to every artwork of track 1 of playlist "Music"
end tell
tell application "Keyboard Maestro Engine"
set variable "myArtworkkm" to myArtwork
end tell
im trying to basically to get the current Catalina music album cover into a KM variable
is this possible at all
if so im getting error in my script, which is of course since i don't know what im doing.. any tips on the script?
KM variables only handle text, so they can't be used for images, but you could use named clipboards. In my testing, this macro that uses this script from Stack Overflow seems to work:
last question , im trying to get keyboard maestro to show the output of this in a window (text). I have this setup but it keeps saying no text in clipboard (even though im referring %NamedClipboard%Image Clipboard%)
Yes, but not in the same window. It may not be elegant, but the easiest way to go about this is to use two windows: one for the tokens, and another for the clipboard.
For styled text, it is presumably possible to have an image in the text. I'm not sure how practical it is to do, but it is probably not technically impossible.