Why did you not reply to the list where other people could see your reply?

On Fri, 3 Mar 2023, at 16:46, Clayton Macleod wrote:
> Well, the first thing I do is grab a list of the entire song library. Then
> I create a playlist.

The code says it uses an existing playlist unless it doesn't exist.  Unless
you're manually deleting it after each run, surely it will exist already.

> The entries in this playlist are the only things that
> get deleted, so the song list that I grabbed is still valid. 

What happens if you run the iTunes application while your script is
running?  If that's possible can you see your playlist's contents being 
changed?

> But I'm not
> keeping track of the playlist or its deletions in the script because I
> don't think I need to since iTunes is holding a copy of it. 

Isn't the playlist that you're manipulating /the one that iTunes has/ ...
ie not a copy of it?

If your playlist is not iTunes playlist (of the specified name) how on 
earth does your one affect what iTunes is doing?


> I'm only
> referring again to items in the initial list that have not changed. But the
> deletion call seems to cause my copy of that initial list to get corrupted
> somehow as trying to print song.Name fails on hundreds of attempts out of a
> loop of 1,000 attempts.

This 1.000 attempts code ... it's not in the source code you posted, or is it?  
My python knowledge is rusty.  And if your playlist only contains a max of
25 items, what is the significance of doing something 1000 times?

-- 
Jeremy Nicoll - my opinions are my own.
_______________________________________________
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32

Reply via email to