Question
thumb.lastModifiedDate is wrong data type
On page 125 of the Bridge JavaScript Reference, it lists the lastModifiedDate property for the thumbnail object. It says that it should be a Date data type.
When I access app.document.visibleThumbnails.lastModifiedDate and look at it, I find that this property is a string data type (a bunch of numbers in a string).
If I access app.document.visibleThumbnails.spec.modified, I find that it's a date type.
According to the doc, both are supposed to be Date types. Is the doc wrong? Is this a bug that lastModifiedDate is showing up as a string.
In case you are wondering why I don't just use app.document.visibleThumbnails.spec.modified since it is a proper Date object, I was using that field, but I'm having a problem with that field sometimes returning as "undefined", so that's why I tried to switch to app.document.visibleThumbnails.lastModifiedDate, but it's not the right type. So, I'm temporarily stuck. My code is just trying to determine which thumb has the more recent modification date.
After I finish some more testing, I'll write more about the problem with app.document.visibleThumbnails.spec.modified sometimes showing up as undefined. In a large folder of images, it happens nearly every time, but only once or twice in the folder and not on the same images every time. I'm working on putting this into my test app to report more detail on this problem.
--John
When I access app.document.visibleThumbnails.lastModifiedDate and look at it, I find that this property is a string data type (a bunch of numbers in a string).
If I access app.document.visibleThumbnails.spec.modified, I find that it's a date type.
According to the doc, both are supposed to be Date types. Is the doc wrong? Is this a bug that lastModifiedDate is showing up as a string.
In case you are wondering why I don't just use app.document.visibleThumbnails.spec.modified since it is a proper Date object, I was using that field, but I'm having a problem with that field sometimes returning as "undefined", so that's why I tried to switch to app.document.visibleThumbnails.lastModifiedDate, but it's not the right type. So, I'm temporarily stuck. My code is just trying to determine which thumb has the more recent modification date.
After I finish some more testing, I'll write more about the problem with app.document.visibleThumbnails.spec.modified sometimes showing up as undefined. In a large folder of images, it happens nearly every time, but only once or twice in the folder and not on the same images every time. I'm working on putting this into my test app to report more detail on this problem.
--John
