r/applescript • • Oct 03 '23

help for writing an apple script

hello

i want to use a script found on github but it doesn't work for me .can someone please help me to make it work?

I want to export multiple playlists with files from apple music

i found this script , its launching but the song are not exported.

i got this error message

"error the attribute variable is not defined" number-2753 from "attribute"

can someone help me please?

3 Upvotes

13 comments sorted by

View all comments

Show parent comment

1

u/0x4542 Oct 04 '23

⌘-3, and then click on the Messages tab. What you see in the messages tab is what you'd see in the Terminal if you ran the script there instead.

Apple's use of the command name log is unfortunate. It's really a println statement, to standard out.

That lower panel that appears with a ⌘-3 also displays the Apple Events sent between applications, and the replies.

Script Editor > Windows > Log History, allows you to access the results of previous runs of your script.

1

u/Wayat Oct 04 '23

tell application "Finder" get size of file "Macintosh HD:Bibliothèque musicale:Itunes:iTunes Media:Music:Us3:Hand On The Torch:01 Cantaloop (Flip Fantasia).m4a" --> error number -1728 from file "Macintosh HD:Bibliothèque musicale:Itunes:iTunes Media:Music:Us3:Hand On The Torch:01 Cantaloop (Flip Fantasia).m4a" end tell tell

application "Music" close access 43 --> error number -10004 end tell tell current application close access 43

end tell

tell application "Music"

(*Erreur dans Finder : Il est impossible d’obtenir file "Macintosh HD:Bibliothèque musicale:Itunes:iTunes Media:Music:Us3:Hand On The Torch:01 Cantaloop (Flip Fantasia).m4a".*)

Résultat : error "La variable attribute n’est pas définie." number -2753 from "attribute"