That seems to be working. Here are some things I noticed.
Each time it ran, the individual files would go back and forth from "was not found in the logfile" to "has not finished downloading".
I looked through the log file and noticed the files keep showing up as Resilio Sync does its thing. If each file is in both ends of the sync, it doesn't sync them, but each file still shows up in the log... a lot. I think that's why it keeps flipping between the two alerts.
'Finished downloading file "/Users/scott/Library/Application Support/Resilio Sync/' shows up a lot, but not near as often as all the different filenames when the app does it's syncing. It shows up only when the info.dat files change, it seems.
However, 'Finished downloading file "/Users/scott/Downloads/' only shows up twice per file. One for the file itself and once for the file's metadata. /Users/scott/Downloads folder was the one I used for my tests.
For example:
Finished downloading file "/Users/scott/Downloads/movie.m4v"
Finished downloading file "/Users/scott/Downloads/movie.m4v/com.apple.metadata:_kMDItemUserTags"
That got me to thinking. If the two loops were reversed and it looked for /Users/scott/Downloads/ first, and then when that shows up, look for the filename second, it seems like the two loops would get fewer hits and run quicker. I can read the code and tell what it's doing, and I think I could do that on my own once I got used to the syntax AppleScript uses. But the 'set theLogSearchResult' line is going to take me quite a while to figure out. I know what it's doing, but there's a lot in that line that I'm not familiar with.
Also, I see what you mean about setting the file paths in the final script, but what about when it's on a separate drive?
Would it be "Working:Foldername" or "Macintosh HD:Volumes:Working:Foldername"?
Thanks for everything you're helping me with. Not only are you helping me with this issue, you're giving me some insights into the language that will help me learn it better.
Each time it ran, the individual files would go back and forth from "was not found in the logfile" to "has not finished downloading".
I looked through the log file and noticed the files keep showing up as Resilio Sync does its thing. If each file is in both ends of the sync, it doesn't sync them, but each file still shows up in the log... a lot. I think that's why it keeps flipping between the two alerts.
'Finished downloading file "/Users/scott/Library/Application Support/Resilio Sync/' shows up a lot, but not near as often as all the different filenames when the app does it's syncing. It shows up only when the info.dat files change, it seems.
However, 'Finished downloading file "/Users/scott/Downloads/' only shows up twice per file. One for the file itself and once for the file's metadata. /Users/scott/Downloads folder was the one I used for my tests.
For example:
Finished downloading file "/Users/scott/Downloads/movie.m4v"
Finished downloading file "/Users/scott/Downloads/movie.m4v/com.apple.metadata:_kMDItemUserTags"
That got me to thinking. If the two loops were reversed and it looked for /Users/scott/Downloads/ first, and then when that shows up, look for the filename second, it seems like the two loops would get fewer hits and run quicker. I can read the code and tell what it's doing, and I think I could do that on my own once I got used to the syntax AppleScript uses. But the 'set theLogSearchResult' line is going to take me quite a while to figure out. I know what it's doing, but there's a lot in that line that I'm not familiar with.
Also, I see what you mean about setting the file paths in the final script, but what about when it's on a separate drive?
Would it be "Working:Foldername" or "Macintosh HD:Volumes:Working:Foldername"?
Thanks for everything you're helping me with. Not only are you helping me with this issue, you're giving me some insights into the language that will help me learn it better.