item.gpsExists Removed?

Advanced Renamer forum
#1 : 29/03-25 01:39
MG
Posts: 6

I downloaded the latest version today (didn't know there was a new version because AR v3.95.4 didn't report a new one when I clicked 'Check for New Version').

I tried my Javascript 'Photo Organisation Script' only to see some of the tags not showing in the new filename as they did in previous versions.

It appears 'gpsExists' has been removed from the item class, is this the case or an oversight?

If so, I presume the only way to handle this now is to grab any of the GPS tags and check for a null or empty string and use that as a test?

Cheers
MG
#2 : 29/03-25 11:08
Kim Jensen
Administrator
Posts: 977
Reply to #1:
When upgrading from version 3.x to 4.x 100% backwards compatibility is not guaranteed. Scripting has been completely rewritten which makes the risk of braking chances greater.

You are right. The GPS Exists is not longer available as a property on item, but I can re-add it again in version 4.11.

Until then, you can check if item.GPSLatitude is empty or not.