Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

th3g00ds0n

macrumors newbie
Original poster
Jan 13, 2010
1
0
hi, and thanks in advance to anyone taking the time to read this. here's my question:

using this applescript (which i attained from another source):

"on adding folder items to my_folder after receiving the_files
repeat with i from 1 to number of items in the_files
tell application "iTunes"
launch
try
set this_file to (item i of the_files)

add this_file

(*
-- if you have iTunes set to
--"Copy files to iTunes Music folder when adding to library"
-- then you might want to delete the original file...
-- if so, remove comments from this block and
-- use the UNIX commands below to delete the file

set the file_path to the quoted form of the POSIX path of this_file
do shell script ("rm -f " & file_path)

*)
end try
end tell
end repeat
end adding folder items to
"

... i am able to attach this action to my main music directory "MUSIC" with success, so that when i add individual songs to the directory, they will automatically add to iTunes. however, this action will NOT work when i add sub-folders to the directory.

does anyone happen to know how might i adjust the above applescript to allow both files AND folders to be watched for?

thanks again.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.