iTunes multiple changes without repeat? Speeding up things.
iTunes multiple changes without repeat? Speeding up things.
- Subject: iTunes multiple changes without repeat? Speeding up things.
- From: Skeeve <email@hidden>
- Date: Wed, 26 Mar 2008 14:01:22 +0100
Hi!
Does anyone of you know of a way to make changes to the properties of
some tracks without looping?
Usually I do it like this:
property fixed_album_name : "This Is An Example"
tell application "iTunes"
if selection of front browser window is {} then
display alert "nothing selected."
return
end if
set these_tracks to selection of front browser window
set these_tracks_ref to a reference to these_tracks
repeat with tr in these_tracks_ref
set album of tr to fixed_album_name
end repeat
end tell
my "problem" now is, that I want to do several changes (it's a
tag-fix-script) and looping through all the trags and tags isn't very
fast. Especially because iTunes always refreshes the screen.
So I thought I could do something like this:
set album of every track of these_tracks_ref to fixed_album_name
which, of course, didn't work.
Is there another way to achieve that? Or is athere a way to make iTunes
stop refreshing the screen?
Many thanks in advance...
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden