<html>
    <head>
      <base href="http://fiji.sc/bugzilla/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Determine the current macro name fails"
   href="http://fiji.sc/bugzilla/show_bug.cgi?id=1207">1207</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Determine the current macro name fails
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Fiji
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P4
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Plugins
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>imagej-bugs@imagej.net
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>mail@m-entrup.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>mail@m-entrup.de
          </td>
        </tr></table>
      <p>
        <div>
        <pre>With version 1.50f19 the new feature was introduced.
I'm not able to use it as intended.

The minimal macro saved as New_ijm in two different directories (C:\Temp and
the plugins folder of Fiji)
   requires("1.50f");
   var name = getInfo("macro.filepath");
   IJ.log(name);
always returns the pat to AutoRun_Scripts.ijm (e.g.
H:\Fiji.app\/macros/AutoRun/AutoRun_Scripts.ijm).
The same result is given when using Macro_Runner.getFilePath() in a Jython
script.
   from ij import IJ
   from ij.plugin import Macro_Runner
   name = Macro_Runner.getFilePath()
   IJ.log(name)

I have tested both (macro and script) with the ImageJ development snapshot
updated to 1.50f19, where the macro returns 'null' and the script returns
nothing (log does not show up).

Information about your version of Java:

  os.arch => amd64
  os.name => Windows 7
  os.version => 6.1
  java.version => 1.6.0_24
  java.vendor => Sun Microsystems Inc.
  java.runtime.name => Java(TM) SE Runtime Environment
  java.runtime.version => 1.6.0_24-b07
  java.vm.name => Java HotSpot(TM) 64-Bit Server VM
  java.vm.version => 19.1-b02
  java.vm.vendor => Sun Microsystems Inc.
  java.vm.info => mixed mode
  java.awt.graphicsenv => sun.awt.Win32GraphicsEnvironment
  java.specification.name => Java Platform API Specification
  java.specification.version => 1.6
  sun.cpu.endian => little
  sun.desktop => windows
  file.separator => \

The up-to-date check says: REMIND_LATER

Information relevant to JAVA_HOME related problems:

  JAVA_HOME is set to: H:\Fiji.app/java/win64/jdk1.6.0_24//jre
  imagej.dir => H:\Fiji.app

Information about the version of each plugin:

Activated update sites:
ImageJ: <a href="http://update.imagej.net/">http://update.imagej.net/</a> (last check:20151221201554)
Fiji: <a href="http://update.fiji.sc/">http://update.fiji.sc/</a> (last check:20151221100640)

Files not up-to-date:
  e7c170f1 (MODIFIED) 20151222104614 jars/ij-1.50e.jar
  c4cc215d (LOCAL_ONLY) 20151222110049 plugins/New_.ijm</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>