Can I know the size of the file without being called up by Photoshop?

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

lee ky
Posts: 22
Joined: Tue Mar 03, 2020 3:59 am

Can I know the size of the file without being called up by Photoshop?

Post by lee ky »

var MyFile = new File ("/d/a.jpg");

if (MyFile.exists)
{
alert (MyFile.height )
}
User avatar
Kukurykus
Posts: 528
Joined: Mon Jul 25, 2016 12:36 pm

Re: Can I know the size of the file without being called up by Photoshop?

Post by Kukurykus »

What do you mean without beeing called up by Photoshop? An alert? Just don't use it, but set result to variable or other file.