aboutsummaryrefslogtreecommitdiff
path: root/add_my_patches_to_media_menu-plugin.tcl
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-11-30 21:18:47 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-11-30 21:18:47 +0000
commite58f6b3236f51c06e53c407a46d41f5e898c3b3c (patch)
tree0f591563a53ca78869729ec022f76de692306885 /add_my_patches_to_media_menu-plugin.tcl
added the simple plugins from the pd-gui-rewrite/0.43/startup branchsvn2git-root
svn path=/trunk/scripts/guiplugins/simple_examples/; revision=14540
Diffstat (limited to 'add_my_patches_to_media_menu-plugin.tcl')
-rw-r--r--add_my_patches_to_media_menu-plugin.tcl11
1 files changed, 11 insertions, 0 deletions
diff --git a/add_my_patches_to_media_menu-plugin.tcl b/add_my_patches_to_media_menu-plugin.tcl
new file mode 100644
index 0000000..bf9f3ab
--- /dev/null
+++ b/add_my_patches_to_media_menu-plugin.tcl
@@ -0,0 +1,11 @@
+# this script searches a folder for Pd patches, then adds them to the bottom
+# of the Media menu for quick opening
+
+# you probably want to set this to something that makes sense for you:
+set mypatch_dir ~/Documents/Pd
+
+.menubar.media add separator
+
+foreach filename [glob -directory $mypatch_dir -nocomplain -types {f} -- *.pd] {
+ .menubar.media add command -label [file tail $filename] -command "open_file $filename"
+}