Ive got this small script to clean note tracks in a file. Can someone please modify this one so it runs a “Post CallBack” , basically run the script automatically once a file is open.
(
local tmpNodes = for prop in getPropNames trackviewnodes collect (getproperty trackviewnodes prop)
for n in tmpNodes where hasNoteTracks n do
(
format "% NoteTracks removed, Node “%”
" (numnotetracks n) n
while hasNoteTracks n do deleteNoteTrack n ( getNoteTrack n 1 )
)
)