Select every other item.
#1
Posted 01 August 2005 - 07:42 PM
Selected
Not Selected
Selected
Not Selected
Selected
Not Selected
repeat x 3000.
#2
Posted 01 August 2005 - 09:16 PM
Hold down the Command (Apple) key while making your selection. This works in many areas on the Mac. Also holding the Shift key down will select the range, for example select the first item in a list, then hold the shift key down and select the 15th item. All items will then be selected 1-15.
Good Luck.
#3
Posted 01 August 2005 - 09:22 PM
Yes!
Hold down the Command (Apple) key while making your selection. This works in many areas on the Mac. Also holding the Shift key down will select the range, for example select the first item in a list, then hold the shift key down and select the 15th item. All items will then be selected 1-15.
Good Luck.
Yeah, but 3000 times? I'm not sure if that is exactly the answer jorellh wants... But yeah, Command-Clicking every other item will work. I'm not sure about anything else...
#4
Posted 02 August 2005 - 10:23 AM
The AppleScript below will add "Duplicate" in front of the comment of every other track of the current iTunes playlist. (Copy and paste into /Applications/AppleScript/Script Editor and run.) After doing that, you can sort the playlist by Comment and then select the now contiguous tracks that contain "Duplicate" as the first word of the comment field. And then return to the original sorting order and every other track will be selected. (of course, if you then plan to do something else with the selected tracks, you might well be able to just incorporate that into the AppleScript directly.)
tell application "iTunes" activate -- get the playlist in the current window set thePlaylist to the view of browser window 1 set theTracks to the tracks of thePlaylist repeat with i from 1 to the count of theTracks -- pick every other track (even numbered track in list) if (i = ((i / 2 as integer) * 2)) then set tr to item i of theTracks -- add " duplicate " as a prefix to existing comment set trComment to the comment of tr as string set the comment of tr to " duplicate " & trComment end if end repeat end tellSee correction below :oops:
#5
Posted 02 August 2005 - 10:41 AM
ooooh... great solution.... i'm very impressed....I can suggest an oblique way to approach this task:
The AppleScript below will add "Duplicate" in front of the comment of every other track of the current iTunes playlist. (Copy and paste into /Applications/AppleScript/Script Editor and run.) After doing that, you can sort the playlist by Comment and then select the now contiguous tracks that contain "Duplicate" as the first word of the comment field. And then return to the original sorting order and every other track will be selected. (of course, if you then plan to do something else with the selected tracks, you might well be able to just incorporate that into the AppleScript directly.)tell application "iTunes" activate -- get the playlist in the current window set thePlaylist to the view of browser window 1 set theTracks to the tracks of thePlaylist repeat with i from 1 to the count of theTracks -- pick every other track (even numbered track in list) if (i = ((i / 2 as integer) * 2)) then set tr to item i of theTracks -- add " duplicate " as a prefix to existing comment set trComment to the comment of tr as string set the comment of tr to " duplicate " & trComment end if end repeat end tell
#6
Posted 02 August 2005 - 11:27 AM
#7
Posted 02 August 2005 - 02:23 PM
If you are going to use iTunes' built-in "Show duplicate songs" feature, that's not going to do what you want. The reason his "Show duplicates songs" is not a Playlist. It's something "Special", like using the search string. So if you run that script on the "Show duplicates...", you're going to end up selecting every other song of your entire Library.
Choice of two ways around this:
You can grab all the duplicates songs and make a new Playlist out of them, then proceed based on that new Playlist.
Or, you can Show duplicate songs, and then select all the duplicates, and change the AppleScript line:
set theTracks to the tracks of thePlaylistto
set theTracks to the selection
Sorry, I should've paid more attention to your intended usage. :oops:
#8
Posted 02 August 2005 - 04:21 PM
#9
Posted 18 September 2011 - 04:45 PM
#10
Posted 19 September 2011 - 02:14 PM
How would you do this on a Windows 7 Machine?
Unfortunately there is no real Applescript equivalent for Windows 7. You'll have to hunt for a third party automation app.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users










