Issue with macro

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue with macro

johnthelast
I'm executing a macro and most of the time it seems to work just fine. But occasionally it fails with a "Unsupported format or file not found"

In this case, the error pointed to D:\2026-07-24 Test\EV Lac\Calibrations in line 66:

line 66 is "run("Image Sequence...", "open=[" + inDir + "] filter=" + flt + " sort use");

Debug window is:

arg * "D:/2026-07-24 Test/EV Lac|EV Lac|C:/ProgramData/AstroImageJ|_cal.fits"
parts * array[4]
pi * 4
inDir * "D:/2026-07-24 Test/EV Lac/"
star * "EV Lac"
aijDir * "C:/ProgramData/AstroImageJ/"
resultsDir * "D:/2026-07-24 Test/EV Lac/RESULTS/"
aijResults * "D:/2026-07-24 Test/EV Lac/RESULTS/AIJ/"
filters * array[1]
fi * 0
flt * "_cal.fits"
nMatch * 1847


It looks like it is picking up the Directory as a file rather than skipping it. Am I just missing an option?
Reply | Threaded
Open this post in threaded view
|

Re: Issue with macro

keastrid
Hi John,

I can't seem to reproduce this. Does the macro always fail on D:\2026-07-24 Test\EV Lac\Calibrations, or does it sometimes work? It there more to the error message you can share?

Kevin
Reply | Threaded
Open this post in threaded view
|

Re: Issue with macro

johnthelast
Out of curiosity, I reran the macro recorder. This time, it provided a different macro for the statement that erred out. It now uses the FILE.IMPORT instead of the RUN command.

It has not failed since I changed the macro. It had been failing intermittently.

Let's just close this out. If it reoccurs using the new command, I'll reopen a ticket.

Thanks for the quick reply and support

John Sikora