CaptureScreen file name

I use CaptureScreen and set Increment to yes. How do I get the resulting file name so i can log it to a different file?

Thanks.

After you run the captureScreen command, you can get the full path to the file with the line:

put the result

Thanks Matt!