If you want bulk set item properties like EndType and BackgroundColour - take a look at this script:
[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 CueStart and FadeOut options for this to top and tail your audio
// which will ensure smooth automation overlaps
var
i: integer;
begin
for i := 0 to CurrentPlaylist.GetCount - 1 do
// If EndType is empty, then run SetEndType
// Comment this line out to set EndTypes of all items in the Playlist
if CurrentPlaylist.GetItem(i).GetEndType = ‘’ then
begin
// Set End Type to temporary - useful to indicate an automatically generated CueOut
CurrentPlaylist.GetItem(i).SetEndType(‘t’);
// Main Section
// Set Playlist Icon - adjust your icon locations to suit
//CurrentPlaylist.GetItem(i).GetPicture.LoadFromFile(‘C:\mAirList\icons\Icon - Advert.ico’);
//CurrentPlaylist.GetItem(i).GetPicture.LoadFromFile(‘C:\mAirList\icons\Icon - Control.ico’);
//CurrentPlaylist.GetItem(i).GetPicture.LoadFromFile(‘C:\mAirList\icons\Icon - Ident.ico’);
//CurrentPlaylist.GetItem(i).GetPicture.LoadFromFile(‘C:\mAirList\icons\Icon - Pre Rec.ico’);
//CurrentPlaylist.GetItem(i).GetPicture.LoadFromFile(‘C:\mAirList\icons\Icon - Promo.ico’);
//CurrentPlaylist.GetItem(i).GetPicture.LoadFromFile(‘C:\mAirList\icons\Icon - Voicetrack.ico’);
CurrentPlaylist.GetItem(i).GetPicture.LoadFromFile(‘C:\mAirList\icons\Icon - Song.ico’);
// If you want to colour an item, use this line:
CurrentPlaylist.GetItem(i).SetColored(true);
// Suggested Colours:
// Adverts and Promos
//CurrentPlaylist.GetItem(i).SetColor($80FF80);
//CurrentPlaylist.GetItem(i).SetArtist(‘Voicetrack’);
//CurrentPlaylist.GetItem(i).SetComment(‘This item can be overlayed with a song intro.’);
// Beds
//CurrentPlaylist.GetItem(i).SetColor($FFFF00);
// Jingles
CurrentPlaylist.GetItem(i).SetColor($00FFFF);
// Pre Rec
//CurrentPlaylist.GetItem(i).SetColor($9EE0D3);
// VoiceTracks
//CurrentPlaylist.GetItem(i).SetColor($D3E09E);
//CurrentPlaylist.GetItem(i).SetColor($FF80FF);
//CurrentPlaylist.GetItem(i).GetCuePosition(ptFadeOut).SetValue(0);
//CurrentPlaylist.GetItem(i).GetCuePosition(ptCueOut).SetValue(0);
// Save MMD Data File
CurrentPlaylist.GetItem(i).SaveMMD;
end;
end.[/code]
The original thread for this script is http://forum.mairlist.com/index.php/topic,2558.0.html