64bit test

Photoshop Script Snippets - Note: Full Scripts go in the Photoshop Scripts Forum

Moderators: Tom, Kukurykus

Mikeal.Sim

64bit test

Post by Mikeal.Sim »

tests if the current version of PS is 64 bit by examining the system info.
If it is 64bit the sys info at the end of the first line "Version" will include "X64". So I'm testing whether it is there or not.

Code: Select allvar test64= false;
var sys =systemInformation.indexOf ("X64");
if (sys >0 && sys<150)
{var test64=true;};
Mike Hale

64bit test

Post by Mike Hale »

I think this should also do the job when run in Photoshop.Code: Select allvar test64 = BridgeTalk.appVersion.match(/\d\d$/) == '64';