Skip to main content
Participant
April 26, 2018
Question

Adobe ExtendScript - File length returns -1 for Size 2gb

  • April 26, 2018
  • 2 replies
  • 576 views

I am trying to get the length of file using Adobe Extendscript toolkit CC,

var fileBytes = File("<Input-File>").length

This script is not working and returns -1 if the <Input-File> is over 2GB size.

Can someone help me to fix this error?

This topic has been closed for replies.

2 replies

Bernd Alheit
Community Expert
Community Expert
April 26, 2018

Acrobat doesn't use Extendscript.

Szalam
Community Expert
Community Expert
April 26, 2018

Moved from the Acrobat scripting forum to a Photoshop scripting forum. ramk48682198​ what software are you trying to write a script for? We can move it to the appropriate forum.

Participant
April 27, 2018

Thanks for your quick reply. This issue related to Photoshop scripting (Adobe Extendscript toolkit CC).

kglad
Community Expert
Community Expert
April 26, 2018