Re: finding renamed files
Thanks to all who made suggestions re the above. The detailed files looked promising, but ultimately a bit disappointing. Maybe last accessed might offer something, unless of course the file is renamed without opening. Mind you, I am only interested in files renamed because they *mean* something to the user, so I may well want to ignore anything renamed without opening. I will call that a 'feature' ;-)) I will experiment and see what works best. Best Wishes, David Glasgow Carlton Glasgow Partnership http://www.i-psych.co.uk ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: finding renamed files
Hello David: Assuming you are dealing with jpegs only, you could use exif data in your comparison algorithm. For example, if you know the source of all images you can parse the exif data to see if an unknown 'image software source' field exists. If yes, then it is deemed to have changed. Alex Tweedly has a stack libEXIF that does this well. I think it is in RevOnline. Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Glasgow Sent: Thursday, February 08, 2007 3:28 AM To: use-revolution@lists.runrev.com Subject: Re: finding renamed files Thanks to all who made suggestions re the above. The detailed files looked promising, but ultimately a bit disappointing. Maybe last accessed might offer something, unless of course the file is renamed without opening. Mind you, I am only interested in files renamed because they *mean* something to the user, so I may well want to ignore anything renamed without opening. I will call that a 'feature' ;-)) I will experiment and see what works best. Best Wishes, David Glasgow Carlton Glasgow Partnership http://www.i-psych.co.uk ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: finding renamed files
Hi David - If the last modified date of all non-name-changed files is the same (as I suspect they would be if they came from a digital camera), you could use 'the detailed files' to identify all files in the directory with dates different than that 'standard' mod date. Those would be the changed ones. Of course from that you won't know what was changed about them, only that they were changed. HTH - Phil Davis David Glasgow wrote: I am looking for a quick and dirty method for walking a directory and finding files that have been renamed by the user. I don't need to find them all, just as many as possible. The folders are likely to originally contain matching stems and progressive numbers pjf017.jpg, pjf018 .jpg, pfj019 .jpg etc. etc, with the user renamed files standing out completely arbitrarily by not following the pattern . At the moment I do this using the eyeball test, which is remarkably quick and efficient but very very very boring because there are often thousands of files to scan. One approach I thought of is to progressively filter the folders' contents by nibbling a character off the end of the first filename. If it is completely unique (and possibly therefore renamed), nothing will happen. However if 9 other files disappear, it was a name representative of progressive pattern. Nibble another character, and so on until it is gone, and any filenames left over didn't fit the dominant pattern in the folder. Yes? No? . Any other suggestions? Best Wishes, David Glasgow Carlton Glasgow Partnership http://www.i-psych.co.uk ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: finding renamed files
What I said earlier is not true. On Mac OS X at least, the last mod date (item 5 of each line in the detailed files) doesn't reflect name changes. Sorry! Phil Phil Davis wrote: Hi David - If the last modified date of all non-name-changed files is the same (as I suspect they would be if they came from a digital camera), you could use 'the detailed files' to identify all files in the directory with dates different than that 'standard' mod date. Those would be the changed ones. Of course from that you won't know what was changed about them, only that they were changed. HTH - Phil Davis David Glasgow wrote: I am looking for a quick and dirty method for walking a directory and finding files that have been renamed by the user. I don't need to find them all, just as many as possible. The folders are likely to originally contain matching stems and progressive numbers pjf017.jpg, pjf018 .jpg, pfj019 .jpg etc. etc, with the user renamed files standing out completely arbitrarily by not following the pattern . At the moment I do this using the eyeball test, which is remarkably quick and efficient but very very very boring because there are often thousands of files to scan. One approach I thought of is to progressively filter the folders' contents by nibbling a character off the end of the first filename. If it is completely unique (and possibly therefore renamed), nothing will happen. However if 9 other files disappear, it was a name representative of progressive pattern. Nibble another character, and so on until it is gone, and any filenames left over didn't fit the dominant pattern in the folder. Yes? No? . Any other suggestions? Best Wishes, David Glasgow Carlton Glasgow Partnership http://www.i-psych.co.uk ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: finding renamed files
Take a look at the filter command with wild cards instead of regEx Very speedy, and easy to do progressive 'nibbles' + counting On 2/3/07 10:46 AM, David Glasgow [EMAIL PROTECTED] wrote: I am looking for a quick and dirty method for walking a directory and finding files that have been renamed by the user. I don't need to find them all, just as many as possible. The folders are likely to originally contain matching stems and progressive numbers pjf017.jpg, pjf018 .jpg, pfj019 .jpg etc. etc, with the user renamed files standing out completely arbitrarily by not following the pattern . At the moment I do this using the eyeball test, which is remarkably quick and efficient but very very very boring because there are often thousands of files to scan. One approach I thought of is to progressively filter the folders' contents by nibbling a character off the end of the first filename. If it is completely unique (and possibly therefore renamed), nothing will happen. However if 9 other files disappear, it was a name representative of progressive pattern. Nibble another character, and so on until it is gone, and any filenames left over didn't fit the dominant pattern in the folder. Yes? No? . Any other suggestions? ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: finding renamed files
David Glasgow wrote: I am looking for a quick and dirty method for walking a directory and finding files that have been renamed by the user. I don't need to find them all, just as many as possible. The folders are likely to originally contain matching stems and progressive numbers pjf017.jpg, pjf018 .jpg, pfj019 .jpg etc. etc, with the user renamed files standing out completely arbitrarily by not following the pattern . At the moment I do this using the eyeball test, which is remarkably quick and efficient but very very very boring because there are often thousands of files to scan. One approach I thought of is to progressively filter the folders' contents by nibbling a character off the end of the first filename. If it is completely unique (and possibly therefore renamed), nothing will happen. However if 9 other files disappear, it was a name representative of progressive pattern. Nibble another character, and so on until it is gone, and any filenames left over didn't fit the dominant pattern in the folder. Yes? No? . Any other suggestions? I'd try to exploit the fact that such file names usually follow a pattern of prefixnumber.suffix So the *really* quick and dirty method uses that, and also simply assumes that the number part will be 4 digits (true for most cameras) ... (beware typos - not tested) set the itemDel to . repeat for each line f in the files if char -4 to -1 of (item 1 to -2 of f) is not a number then put f CR after theChangedList end repeat Obviously, there are less quick, and less dirty, variants that actually check the prefix is used multiple times - but for me, this would be good enough. -- Alex Tweedly mailto:[EMAIL PROTECTED] www.tweedly.net ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution