myFile.length in Photoshop DOM

The size of the File in bytes.

Property Type
Number
When setting the file size, the file must not be open.