This is what I use.  Hope this works for you.


//Kipp Gremillion
//Pre-recorded Show Script
//Version 1.4
//Much thanks to Festerhead for all the sample scripts
//and answering my questions

//    **********************
//    * User Configurables *
//    **********************

//fill in the show path with a trailing back slash
var ShowPath : String = 'C:\SOMEFOLDER\';
//fill in the filename without the mp3|wma extension.  It will find either
with mp3 coming first.
var TargetFile : String = 'FILENAME';
//the 'artist' for the track
var ShowHost : String = 'Artist to display of the track goes here';
//the 'title' for the track
var ShowTitle : String = 'Title of the track goes here';
//the 'Album' for the track
var ShowAlbum : String = 'Album of the track goes here';
//remove this track from SAM DB after x amount of tracks
var DeleteCount : Integer = 10;

//    ************************
//    * End User Configurables *
//    ************************

var FileToUse : String = ''; //leave this empty

//find the mp3 or wma if exists
if fileexists(ShowPath + TargetFile + '.mp3') then
    FileToUse := ShowPath + TargetFile + '.mp3';
if fileexists(ShowPath + TargetFile + '.wma') then
    FileToUse := ShowPath + TargetFile + '.wma';

//if found file the play it using the track info configured up top
if not (FileToUse = '') then
begin
    Queue.AddFile(FileToUse,ipTop);
    ExecSQL('UPDATE songlist SET artist = :artist, title = :title, album =
:album WHERE filename = :filename',[ShowHost, ShowTitle, ShowAlbum,
FileToUse]);
    pal.waitforplaycount(DeleteCount);
end;

//delete track data from DB
ExecSQL('DELETE FROM songlist WHERE filename = :fname ',[FileToUse]);



 

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
Thomas Barstow
Sent: Wednesday, April 08, 2009 10:04 AM
To: [email protected]
Subject: [General-discussion] Pal Script

Does anyone have example of pal script to run a file each week. I 
have a dedicated show I run each one and want the pal script to 
pickup the file.  I do not want it to run again or show up in the playlist.

Thank You

Tom Barstow  (aka DJ Bear)
Visit our sites @:


Moyock Weather Service
www.moyockweather.com

Wunderground Weather Moyock
http://www.wunderground.com/US/NC/Moyock.html

Internet DJ's
http://www.myspace.com/internetdjs

Sound Machine Radio ~ Juke Box ~
www.soundmachineradio.com

My Country Space
www.mycountryspace.com/djbear 

_______________________________________________
General-discussion mailing list
[email protected]
http://mailman.spacialaudio.com/mailman/listinfo/general-discussion

TO unsubscribe to this list, simply send a blank email to
[email protected]

with the subject 
'unsubscribe'

Reply via email to