NOTICE! This is a static HTML version of a legacy LOCI Software ticket.

LOCI projects are now located on GitHub. The Bio-Formats project can be found here.

Ticket #596 (closed defect: fixed)

Opened 2010-11-09T15:42:01-06:00

Last modified 2010-11-19T14:45:58-06:00

Recorded macros contain "open" twice

Reported by: melissa Owned by: melissa
Priority: major Milestone: bio-formats-4.3
Component: plugins Severity: minor
Keywords: Cc: ved.sharma@…
Blocked By: Blocking:

Description

If you attempt to record a macro for the Bio-Formats Importer plugin, you end up with something like:

  run("Bio-Formats Importer", "open=[/path/to/file] open=[/path/to/file] view=Hyperstack stack_order=XYCZT");

This is a bit confusing, so it would be nice to fix it up so that there is only one "open" option specified.

Change History

comment:1 Changed 2010-11-10T15:01:00-06:00 by melissa

  • Cc ved.sharma@… added

comment:2 Changed 2010-11-16T13:20:09-06:00 by melissa

  • Milestone changed from bio-formats-5.0 to bio-formats-4.3

comment:3 Changed 2010-11-19T14:45:58-06:00 by melissa

  • Status changed from new to closed
  • Resolution set to fixed

(In [7223]) Prevent the 'open' option from being recorded twice. Closes #596.

This is actually a work-around for a problem in ij.io.OpenDialog. OpenDialog forces the macro recorder to record the file path every time 'getFileName()' is called, so if you call that method more than once on an OpenDialog you will see duplicate keys in the recorded macro.