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/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"