hi there. This is my first script, so you might smile . I have serious tried to find a solution for three days now.
I use a mp3 player application, which has problems with several characters (e.g. slashes) in the file- or pathname. the script should ask for my mp3 folder and find all ProblemFiles or folders and either log them to a text file or move them to a folder of your choice.
The script works fine so far and is contained in here:
my gehtlos(derOrdner, wasTun, dieLogfileLocation, dieMovefileFolderLocation)
BUT: I can´t make it to search all subfolders. Only for one level:
tell application "Finder"
repeat with dieCurrentFolderNummer from 0 to dieZahlDerOrdner
if not dieCurrentFolderNummer = 0 then
set derOrdner to item dieCurrentFolderNummer of dieFolderList as alias
end if
my gehtlos(derOrdner, wasTun, dieLogfileLocation, dieMovefileFolderLocation)
set dieCurrentFolderNummer to dieCurrentFolderNummer + 1
end repeat
end tell
Nay help would be great.