Command line Macro - "Plot Profile"

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Command line Macro - "Plot Profile"

splee
Hi,
I am a beginner here.
I want to create a DOS command line macro to plot a profile, and then save it in a text file. Here is what I would do:
- Open a image file ("File" -> "Open")
- Draw a rectangular ROI on the image
- "Analyze" -> "Plot Profile"
- Click "List" on the plot, and then the text window (in table form) pop ups.
- "File" -> "Save as.."
I can then have the saved text file. But this is all manual.

How to do it the macro way? I tried recording the macro; here is the recorded macro:
open("C:\\ToAppend\\MacroRunner\\blobs.tif");
makeRectangle(60, 82, 158, 76);
run("Plot Profile");


But when I ran the macro it didn't work.. the message was:
"This command requires a TextWindow such as the "Log" window or an "Info for..." window"

Please help..