The script for batch exporting playlists from Apple Music app is throwing up the execution error:
"The variable all_ps is not defined. (-2753)"
This is the portion of the code in question:
(-- GET ALL PLAYLISTS FROM APPLE MUSIC)
try
set all_specialps to (get name of every user playlist whose special kind is not none)
set all_userps to (get name of every user playlist whose smart is false and special kind is none)
set all_smartps to (get name of every user playlist whose smart is true and special kind is none)
set delim to "--------------------------------------------------"
set delim_specialpl to "---------------- Special Playlists: ----------------"
set delim_userpl to "------------------ User Playlists: -----------------"
set delim_smartpl to "---------------- Smart Playlists: -----------------"
set all_ps to "{}"
if ((length of all_specialps) > 0) then
set the end of all_ps to delim
set the end of all_ps to delim_specialpl
repeat with ps in all_specialps
set the end of all_ps to ps
end repeat
end if
if ((length of all_userps) > 0) then
set the end of all_ps to delim
set the end of all_ps to delim_userpl
repeat with ps in all_userps
set the end of all_ps to ps
end repeat
end if
if ((length of all_smartps) > 0) then
set the end of all_ps to delim
set the end of all_ps to delim_smartpl
repeat with ps in all_smartps
set the end of all_ps to ps
end repeat
end if
end try
I cannot see what is not defined about all_ps from this, total noob, any help v gratefully received
Changed "set all_ps to "---------------All Playlists:--------------" to no effect, same issue thrown up.