Note: This script has been updated - please read http://forum.mairlist.com/index.php/topic,2558.msg20142.html#msg20142 for an updated script and description
This script is really useful in setting Icons, EndTypes and Colours on common Playlist items. Simply load your items into a Playlist and run the script. It’s a good idea to enable the CueIn and FadeOut settings in order for songs to overlap properly in automation - When I do this, I tag my songs with an EndType of “t” to signify temporary. Later on, I go in and set the Ramp and double-check the FadeOut marker etc.
[code]// Set Item Attributes
// Remove the comments to perform a task
// by Charlie Davy
// Drag all common items into a Playlist and run this script
// Enable CueIn and FadeOut options for this to top and tail your audio
var
i: integer;
begin
for i := 0 to CurrentPlaylist.GetCount - 1 do
// If EndType is empty, then do it
//if CurrentPlaylist.GetItem(i).GetEndType = ‘’ then
begin
// Set End Type to temporary - useful to indicate an automatically generated CueOut
//CurrentPlaylist.GetItem(i).SetEndType(‘t’);
// Set Playlist Icon
//CurrentPlaylist.GetItem(i).LoadIconFromFile(‘C:\Program Files\mAirList\icons\Icon - Advert.png’);
//CurrentPlaylist.GetItem(i).GetPicture.LoadFromFile(‘C:\Program Files\mAirList\icons\Icon - ID Link.png’);
//CurrentPlaylist.GetItem(i).GetPicture.LoadFromFile(‘C:\Program Files\mAirList\icons\Icon - Pre Rec Show.png’);
//CurrentPlaylist.GetItem(i).GetPicture.LoadFromFile(‘C:\Program Files\mAirList\icons\Icon - Voicetrack.ico’);
//CurrentPlaylist.GetItem(i).GetPicture.LoadFromFile(‘C:\Program Files\mAirList\icons\Icon - Song.png’);
// If you want to colour an item, use this line:
//CurrentPlaylist.GetItem(i).SetColored(true);
// Adverts and Promos
//CurrentPlaylist.GetItem(i).SetColor($80FF80);
//CurrentPlaylist.GetItem(i).SetArtist(‘Sweeper’);
//CurrentPlaylist.GetItem(i).SetComment(‘VoiceTrack’);
// Beds
//CurrentPlaylist.GetItem(i).SetColor($FFFF00);
// Jingles
//CurrentPlaylist.GetItem(i).SetColor($00FFFF);
// Pre Rec
//CurrentPlaylist.GetItem(i).SetColor($D3E09E);
//CurrentPlaylist.GetItem(i).SetColor($9EE0D3);
// VoiceTracks
//CurrentPlaylist.GetItem(i).SetColor($FF80FF);
// Save MMD Data File
CurrentPlaylist.GetItem(i).SaveMMD;
end;
end.
[/code]
This is another handy script to have on the Actions button… I have attached my icons to this post 8)
icons.zip (2.64 KB)