I Need help writing this. A few people helped me with the first part of the script. Can anyone help me out me out with the rest.
Thanks in Advance!!
1.) search for matched mp3 and or log files and move them to a temp folder ( file names must be matched minus the extension)
- the gui allows you to choose to search and move just log, just mp3 or to
search and move both.
- there is a progress bar that must be activated for this task
2.) Move .log files to matching named folders which reside in another folder.
3.) open mp3 with Bias Peak ( batch conversion starts)
- all the files must be selected and opened at the same time for Peaks batch
converter to work
4.) Peak places the finished files in a folder called Processed Audio. I would like a droplet script to move the files into the correct
5.) Error check each folder. Each folder should have a mp3 and log file that match.
6.) delete the checked files from the temp folder
I have done a sample script for moving the files. The script doesn’t not search. I have also completed the interface in Xcode.
mp3: 2007.04.27 09.18.31_Room RM20A_Session 0830_09.10 Robert D. Fechtner.mp3
log: 2007.04.27 09.18.31_Room RM20A_Session 0830_09.10 Robert D. Fechtner.log
Folder: 20070427_RM20A_0830_09.10 Robert D. Fechtner
Here is what i have so far.
set folderWithFiles to (choose folder with prompt "Choose the folder containing the mp3 files") set folderToSearchIn to (choose folder with prompt "Choose the folder holding the folders to move to") -- Assuming the files to be found are all mp3 (if not say more) tell application "Finder" set Fldr to folders of folderToSearchIn set F to files of folderWithFiles repeat with oneF in F set N to name of oneF --set N to name of oneF set tid to AppleScript's text item delimiters set AppleScript's text item delimiters to "Session " set TI to text item 2 of N set AppleScript's text item delimiters to ".mp3" set Session to text item 1 of TI set AppleScript's text item delimiters to tid repeat with aFldr in Fldr if Session is in name of aFldr then move oneF to aFldr exit repeat end if end repeat end repeat end tell