select 'Media Kind' when importing to iTunes

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Hey, it would be great if when importing to iTunes I could not only select a playlist but also the 'Media Kind'. In iTunes this is can be found under the Options tab when viewing the file info. Is there maybe a workaround (AppleScript) for this?
jorijnsmit
 
Posts: 2
Joined: Sat Jul 11, 2009 5:22 am

I don't know if there's an AppleScript way to do this. I don't see "media kind" as a property on an iTunes track in AppleScript. I suggest trying some forum more specific to AppleScripting with iTunes.
Mr_Noodle
Site Admin
 
Posts: 11240
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

This is the script that I use to add some of the metadata to a file after importing it to itunes. Don't know if it will help, but enjoy!






--Before running, create a smart playlist using the "name contains" variable to select the appropriate files. This example presumes you have set a smart folder named "Sample Show Name". It will edit all of the metadata for the shows in this smart playlist as set below. Thanks to allenhuffman on macosxhints.com for the script that I modified to achieve this.


--Sample Script:

set smartPlaylists to (get every user playlist whose smart is true and name contains "Sample Show Name")
repeat with thisPlaylist in smartPlaylists
set allTracks to every track of thisPlaylist
repeat with this_track in allTracks
try
set video kind of this_track to TV show
set show of this_track to "Sample Show Name"
set season number of this_track to "1"
on error
display dialog "Failed to add Metadata"
end try
end repeat
end repeat
josephbphillips
 
Posts: 8
Joined: Sat Nov 17, 2007 4:49 pm


Return to Support

cron