PDA

View Full Version : Batch Delete Script is Broken


msadesign
03-25-2007, 11:05 AM
Anybody tried to use the 'Batch Delete' script over on Doug's site to delete playlists? I emailed Doug in December and again in early March- no response [kinda unusual, really].

It's my fault. I thought it would be helpful to have a playlist for every album. And maybe it is helpful, but it makes iTunes barf, so I need a way to delete 2800 playlists.

Details here:http://www.msadesign.com/Problem_with_Batch-Delete_.pdf

[I hope I haven't done anything wrong by posting links, I'm a newbie here].

Michael Spencer
www.badlandscaping.com (http://www.badlandscaping.com)

S2_Mac
03-25-2007, 03:29 PM
Well, it seems fixable; I deleted some playlists and one playlist folder with no probs (iT7.1.1 under OSX10.3.9) after adjusting three lines. The "Can't set view of window 1 to library playlist 1..." error results from a Big Change in iTunes 7.1 (possibly due to Apple TV?) that's affecting lottsa scripts. You used to be able to display everything by setting the view to library playlist 1; not any more. The other two errors are either goofy or profound...I'm not savvy enough to tell the difference ;-)

Starting with this script (http://dougscripts.com/itunes/scripts/ss.php?sp=batchdeleteplaylists), make these changes --
set src_name to (kind of src) as string
- should become:
set src_name to name of src

set folder_playlists to name of every user playlist whose special kind is folder
- should become:
set folder_playlists to name of every playlist whose special kind is folder

set view of front window to library playlist 1 of src
- should become:
set view of front browser window to user playlist "Music" of source "Library"

S2

msadesign
03-25-2007, 08:37 PM
Thanks for the tip! I think I can make simple substitutions, but ran into a bit of an issue.

I opened the script, I see this:

set src_name to («class pKnd» of src) as string

And I have no idea why I am not seeing

set src_name to (kind of src) as string

which is what I saw the first time I opened the script? I am guessing this is some simple Script Editor thing but I don't know what.

–ms

msadesign
03-26-2007, 06:19 PM
Made the changes. Complies, but when I run it, it ties up iTunes. Thought maybe it was doing something as Activity Monitor had flucatuating usages, but after 30 min I bailed:o

Thanks for the effort!

Michael