I have a drive with a lot of mp3's in folders.
It's littered with the resource forks.
The programs I once used to clean folders no longer work in mavericks, because of course they don't.
Googling for answers has failed....so I decided to try doing some scripting and/or automating.
This script works for individual folders
but I've failed in figuring out how to get Applescript to travel through subfolders.
In Automator I actually have a Zap Resource Fork action....which seems to no longer work, and while it can traverse subfolders, getting it to execute the script in a useful way isn't really going my way either.
So, I guess the question I have before I invest more time in this...is there a better way to do this?
It's littered with the resource forks.
The programs I once used to clean folders no longer work in mavericks, because of course they don't.
Googling for answers has failed....so I decided to try doing some scripting and/or automating.
This script works for individual folders
Code:
set srcFolder to choose folder
set file_path to srcFolder as alias as string
set pfile_path to POSIX path of file_path
tell application "Terminal"
activate
delay 1
do script "cd \"" & pfile_path & "\""
delay 1
do script "ls -a> test.txt" in window 1
do script "rm ._*" in window 1
do script "ls -a> test2.txt" in window 1
delay 1
quit "Terminal"
end tell
but I've failed in figuring out how to get Applescript to travel through subfolders.
In Automator I actually have a Zap Resource Fork action....which seems to no longer work, and while it can traverse subfolders, getting it to execute the script in a useful way isn't really going my way either.
So, I guess the question I have before I invest more time in this...is there a better way to do this?