"David Henner" <firstname.lastname@example.org> wrote in message
> Ok I have what appears to be an easy problem.
> I need to capture a figure and save it as a jpg. This is very easy
> print -r0 -djpeg jpg_file_name
> How can i use a variable for the file's name?
> Right now I can save this as "jpg_file_name.jpg" then make a scrpit
> that changes the file's path and name. There has to be an easier
> way. Why can't I just save the resolution, size, format, path and
> filename in one or two lines of code?
Use the functional form of PRINT rather than the command form.
filenameVariable = 'myfile.jpg';