Folder((fnp = (fle = (aD = activeDocument).fullName).parent + '/Used Photo/')).create(), File(fle).remove()
aD.saveAs(File(fnp + aD.name), new JPEGSaveOptions()), aD.close(SaveOptions.DONOTSAVECHANGES)
this is my script guide provide by Kukurykus
its working for me. But when the photo is moved, the size of the photo decreases. E.g. 5.8 mb photo is converted to 500 kb. What to do to stay the same size.