/* File created by ImageJ on 2017.09.10 21:27:31 * * This toolset contains Menu Tools listing in a dropdown menu all the * executable files present in subfolders of the ImageJ/plugins directory. * IJ executable files are all '.txt', '.class' and '.jar' files with at * least one underscore in the filename, and all '.ijm' and '.js' files. * * Edit the two lines below '// Settings:' to change which files should be * listed (e.g. you can exclude .jar files implementing multiple commands * via a plugins.config file) * * For any Menu Tool, hold down 'Shift' while selecting a '.ijm' or '.js' * file in the dropdown list and ImageJ will open that macro or script; */ // Settings: var AllowedFileExtensions= newArray('class','txt','ijm','jar','js'); var IgnoreFilenamesContaining= newArray('$','//','//','//'); // Macros: macro 'Unused Tool -' {} var aList= getPluginList('Scripts/SMM'); var aCmds= newMenu('SMM Menu Tool',aList); macro "SMM Menu Tool - C000C111C222D45C222Dc3C222D35C222D33C222D34C222C333Dc4C333Db2C333Dc5C444D42C444D43C444D82C444D52Dc6C444D36C444Dc2C444C555D76C555D46Da2C555D32Dc9C555D23D24D25Dd3Dd4Dd5C555D22D39C555D8eC555DaaC555D26C555Da9C555D7eC555Dd2C555D3aD7bD8dC666D7dC666D86Dd6C666DcaC666D75D92C666D59C666D72C666D77D8bDb3C666De3De4De5C666D44Da6De6C666Dd9C777D87D9bC777Da5Db6De2C777D62D96C777D5aC777D85C777D53D66C777D9eC777De7C777D6aC777D56D81DcbC777D71C777D29D49D61D91C777D69Da1Da3C888D27C888D6bC888D51C888DdaC888Db1Db9C888D28C888D3bC888D93C888D6eD78C888D55DabC888D4bD7cD99C999D5bC999D41D64D89D9aC999D79D9dC999D95C999Dc1C999DbbC999D83C999D5dDe8C999D98C999D54D74CaaaD13D14D15D7aCaaaD16D65D73D8aCaaaD63DadCaaaD31Db5CaaaD12D4aD88D97CaaaD9cCaaaD6dCaaaD8cDbdCaaaD17CaaaCbbbD2aDd8CbbbDd1Dd7CbbbDa4DccCbbbD4cCbbbD94Db4DbaCbbbD68CcccD21CcccDaeCcccD84CcccD4dCcccDbcDdbDe9CcccD18CcccCdddD3cCdddD67CdddD6cCdddD5eDe1CdddD8fCdddCeeeD48D58Da8Db8Dc8CeeeD38CeeeD7fCeeeD37CeeeDc7CeeeD2bCeeeD11D80CeeeD70CeeeD19D90CeeeCfffD60CfffD47CfffDa0Db7DeaCfffD5cD9fDcdCfffD50D57CfffDa7DbeDf2Df3Df4Df5Df6CfffD6fDb0DdcCfffDacDf7CfffD40CfffD3dCfffD1aD2cD4eDc0Df1Df8" { cmd= getArgument(); if (cmd!='-') run(cmd); } // Functions: function getPluginList(subfolder) { dir= getDirectory('plugins')+ subfolder +File.separator; list= newArray(''+ subfolder +' not found','in the plugins directory...'); if (!File.exists(dir)) return list; rawlist= getFileList(dir); count= 0; for (i=0; i< rawlist.length; i++) { isMacro= (getVersion>='1.41n') && (endsWith(rawlist[i],'.ijm') || endsWith(rawlist[i],'.js')); if (indexOf(rawlist[i], '_')==-1 && !isMacro) rawlist[i]='-'; for (h=0; h