How do you set the path to save a screenshot?

I know that you can use CaptureScreen “~/Documents/” to set the path. But what do you do when you are capturing a part of the screen like this
CaptureScreen(Name “Something”, rectangle((0,0),(300,300)))

Where do you put the path in this case?

Make the path part of the Name property.

That works
Thanks