NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug.

The Fiji project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Bug 77 - Macro entries in Plugins>Macro menu
Macro entries in Plugins>Macro menu
Status: RESOLVED FIXED
Product: Fiji
Classification: Unclassified
Component: Other
unspecified
PC Linux
: P2 normal
Assigned To: ImageJ Bugs Mailing List
Depends on:
Blocks:
 
Reported: 2009-09-04 12:00 CDT by G. Landini
Modified: 2010-01-15 16:03 CST
1 user (show)

See Also:

Description G. Landini 2009-09-04 12:00:20 CDT
The About Startup Macros reports an error because it is pointing to ImageJ/macros/

I also wonder if there would be a way of making the entries "Save as Jpeg... [j]" and "Save Inverted FITS" appear as part of the File>Save entries.
Those are macros which are loaded from the StartupMacros file.

Or perhaps include those in the macros folder instead.

Just for the record, I find it very handy in IJ to symbolically link the /macros folder to the /plugins folder, so the macros with a "_" appear in the plugins hierarchy under "macros". Not sure if that can be done in all platforms.
Comment 1 Johannes Schindelin 2009-09-04 14:39:16 CDT
Symbolic links are not available on Windows, so no, it cannot be done in general.

We _could_ do something with fiji.User_Plugins, though (which is already responsible to refresh the scripts after "Update Menus" and upon startup).

As for the question whether "Save as Jpeg..." could be in the Save As menu, I haven't checked yet, sorry.  But I dream of a "Save As" (that looks at the extension) since long ago...
Comment 2 G. Landini 2009-10-10 11:24:11 CDT
More on the /macros folder.
Why do we have a separate /macros folder? Obviously to have macros there, but I cannot see any benefit in having it where it is now.
I this it would be preferable to have it under /plugins/macros so it is reachable by the procedure that reads macro names with "_").
Actually under linux is is just a matter of a symbolic link, but ad dscho pointed out recently, this cannot be done in windows.

Or alternatively, have the names read after all the plugins names are read, but then this would need some extra macros entry in the the menus anyway.

Instead of finding further workarounds would it be sensible to suggest to Wayne to move the /macros folder under the /plugins folder?
Would this require lots or work, or break functionality (for instance when running headless, etc)?

Regads

G.
Comment 3 G. Landini 2009-11-01 11:19:10 CST
(In reply to comment #0)
> The About Startup Macros reports an error because it is pointing to
> ImageJ/macros/

Actually it is not. This entry is a macro in the StartupMacros.txt that just tries to open a macro file called "About Startup Macros".
So if one creates such file, it opens it. It is pointing correctly to the macros directory.
But anyway... I do not see the point of this menu entry as it is confusing unless we add a txt file to explain about the StartupMacros file...

Any suggestions?
Comment 4 G. Landini 2010-01-15 16:03:44 CST
Talked to Dscho who fixed it.