On 2015/07/30 11:43 AM, PBKResearch wrote:
Hello
Out of curiosity I tried to run the snippet which Alexandre Bergel posted yesterday under the name âScript of the dayâ. It failed, but nothing to do with the script itself. The problem is that it fails on the line: âFileLocator documents allChildren.â The debugger message is âDirectory does not exist: Path âC:â / âUsersâ / âPeterâ / âDocumentsâ / âMy Musicâ.â Tracing through the debugger output, I conclude that the same error will arise with the directories âMy Picturesâ and âMy Videosâ. One thing these directories have in common is that they are empty, so as a test I copied a small text file into âMy Musicâ, but this made no difference.
I have a vague recollection that âMy Musicâ etc., although presented by Windows as conventional directories, are in fact some sort of pseudo-directories constructed as required by Windows Explorer, but I am not too sure about this. Could this be an explanation of the problem?
Yup you are correct. The actual directory will be "C: / Users/Peter/Music" on windows 7. Craig