- Triggers are not free-running. You have to initiate it somehow, still be able to use your library though the trigger is there, and then remove or disable it once it has done its thing. You might try using the Events "Adding an entry to Favorites" and maybe "Removing an entry from Favorites" to initiate scripts like this.
- It is easy enough to scan a library. Let's assume you have an Image field in library Images called theImage. This dumps the image field values to the log. Alternatively, you could use message() the same way and keep your eyes glued to the bottom of the screen, as it runs through the entries at about 2 seconds per entry; that might be hard to read, which is why I used log(). This should give you an idea as to how images are stored and referenced in Memento. Set the log file in Settings > Application > Debug > Logging options.
var lib = libByName("Images");
var entries = lib.entries();
for (var x = 0; x < entries.length; x++) {
log("Image #" + x + " = |" + entries[x].field("theImage") + "|");
}
- Once you have access to the image file in JavaScript, I don't know how you are going to determine if or how it is corrupt or what to do about it; that's up to you.
IO_Error
//:mementoserver/appspot.com/blob/get?/uid= an so on...
Hotti
Is there any help for me?
Hotti