Skip to content

Instantly share code, notes, and snippets.

@MitchRatquest
Last active June 13, 2016 20:00
Show Gist options
  • Save MitchRatquest/6ed44ffe36416bb80f8239523fb957a3 to your computer and use it in GitHub Desktop.
Save MitchRatquest/6ed44ffe36416bb80f8239523fb957a3 to your computer and use it in GitHub Desktop.
#!/bin/sh
USER="$( logname )"
ls > allexternals
filename="allexternals" #ls > allexternals to get foldernames
echo "#N canvas 5 57 450 294 10;" > declareALL.pd #all pd sketches start with this
while read -r line
do
name="$line"
echo "#X declare -stdpath /home/$USER/pd-externals/$name;" >> declareALL.pd
echo "#X obj 7 34 54 declare -stdpath /home/$USER/pd-externals/$name;" >> declareALL.pd
done < "$filename"
mv declareALL.pd ~/declareALL.pd
rm allexternals
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment