Page 1 of 1
select 'Media Kind' when importing to iTunes

Posted:
Sat Jul 11, 2009 6:11 am
by jorijnsmit
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?
Re: select 'Media Kind' when importing to iTunes

Posted:
Sat Jul 11, 2009 4:26 pm
by Mr_Noodle
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.
Re: select 'Media Kind' when importing to iTunes

Posted:
Mon Aug 24, 2009 10:54 pm
by josephbphillips
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