Jump to content

Voice Drop Script Acting Weird In SAM


Recommended Posts

Hello,

I am using the following script to play a particular voice drop between 6:00PM and 3:00AM:

 

PAL.Loop := True;

Pal.WaitforTime ('18:00:01'); {## Wait for next hour}

Cat['Promos (All)'].QueueTop(smLRP, NoRules); //load ID to the Top of The Queue

 

Pal.WaitforTime ('19:00:01'); {{## Wait for next hour}

Cat['Promos (All)'].QueueTop(smLRP, NoRules); //load ID to the Top of The Queue

 

Pal.WaitforTime ('20:00:01'); {{## Wait for next hour}

Cat['Promos (All)'].QueueTop(smLRP, NoRules); //load ID to the Top of The Queue

 

Pal.WaitforTime ('21:00:01'); {{## Wait for next hour}

Cat['Promos (All)'].QueueTop(smLRP, NoRules); //load ID to the Top of The Queue

 

Pal.WaitforTime ('22:00:01'); {{## Wait for next hour}

Cat['Promos (All)'].QueueTop(smLRP, NoRules); //load ID to the Top of The Queue

 

Pal.WaitforTime ('23:00:01'); {{## Wait for next hour}

Cat['Promos (All)'].QueueTop(smLRP, NoRules); //load ID to the Top of The Queue

 

Pal.WaitforTime ('00:00:01'); {## Wait for next hour}

Cat['Promos (All)'].QueueTop(smLRP, NoRules); //load ID to the Top of The Queue

 

Pal.WaitforTime ('01:00:01'); {## Wait for next hour}

Cat['Promos (All)'].QueueTop(smLRP, NoRules); //load ID to the Top of The Queue

 

Pal.WaitforTime ('02:00:01'); {{## Wait for next hour}

Cat['Promos (All)'].QueueTop(smLRP, NoRules); //load ID to the Top of The Queue

 

Pal.WaitforTime ('03:00:01'); {{## Wait for next hour}

Cat['Promos (All)'].QueueTop(smLRP, NoRules); //load ID to the Top of The Queue

 

//the script will now wait until 6:00pm and begin again.

 

It works fine until the 23:00 line at which time it begins to load the voice drop into the Queue on a non-stop, back-to-back basis. I tried removing the 23:00 lines but the phenomenon only started happening at the 22:00 line. I even tried removing everything after the 23:00 line but it still happens. I should note that the voice drop is the only item contained in that folder and the folder is contained in the Content portion of SAM. Any ideas on what's going on...more importantly, how I can fix it? Thanks for your help.

Link to comment
Share on other sites

Once you hit 2300 hours then the next time MUST be greater. Since 0001 is less, it falls through the loop.

 

You can only wait for a time that is GREATERr, not LESS than the present time.

 

You should have it go from 0001 - 2300 and then kick it off in the Event Scheduler each day.

Spacial SVS Support Team

http://support.spacialaudio.com/forums/

Get help with PAL Scripts at http://www.palscripts.com

Link to comment
Share on other sites

Here you go:

 

PAL.Loop := True;

Pal.WaitforTime ('00:00:01'); {## Wait for next hour}

Cat['Promos (All)'].QueueTop(smLRP, NoRules); //load ID to the Top of The Queue

Pal.WaitforTime ('01:00:01'); {## Wait for next hour}

Cat['Promos (All)'].QueueTop(smLRP, NoRules); //load ID to the Top of The Queue

 

Pal.WaitforTime ('02:00:01'); {{## Wait for next hour}

Cat['Promos (All)'].QueueTop(smLRP, NoRules); //load ID to the Top of The Queue

 

Pal.WaitforTime ('03:00:01'); {{## Wait for next hour}

Cat['Promos (All)'].QueueTop(smLRP, NoRules); //load ID to the Top of The Queue

 

Pal.WaitforTime ('18:00:01'); {## Wait for next hour

Cat['Promos (All)'].QueueTop(smLRP, NoRules); //load ID to the Top of The Queue

 

Pal.WaitforTime ('19:00:01'); {{## Wait for next hour}

Cat['Promos (All)'].QueueTop(smLRP, NoRules); //load ID to the Top of The Queue

 

Pal.WaitforTime ('20:00:01'); {{## Wait for next hour}

Cat['Promos (All)'].QueueTop(smLRP, NoRules); //load ID to the Top of The Queue

 

Pal.WaitforTime ('21:00:01'); {{## Wait for next hour}

Cat['Promos (All)'].QueueTop(smLRP, NoRules); //load ID to the Top of The Queue

 

Pal.WaitforTime ('22:00:01'); {{## Wait for next hour}

Cat['Promos (All)'].QueueTop(smLRP, NoRules); //load ID to the Top of The Queue

 

Pal.WaitforTime ('23:00:01'); {{## Wait for next hour}

Cat['Promos (All)'].QueueTop(smLRP, NoRules); //load ID to the Top of The Queue

//the script will now wait until 6:00pm and begin again.

 

I wonder if I should add "end;" at the end of the 23:00 line....thanks for helping me out.

Link to comment
Share on other sites

Here you go:

 

PAL.Loop := True;

Pal.WaitforTime ('00:00:01'); {## Wait for next hour}

Cat['Promos (All)'].QueueTop(smLRP, NoRules); //load ID to the Top of The Queue

Pal.WaitforTime ('01:00:01'); {## Wait for next hour}

Cat['Promos (All)'].QueueTop(smLRP, NoRules); //load ID to the Top of The Queue

 

Pal.WaitforTime ('02:00:01'); {{## Wait for next hour}

Cat['Promos (All)'].QueueTop(smLRP, NoRules); //load ID to the Top of The Queue

 

Pal.WaitforTime ('03:00:01'); {{## Wait for next hour}

Cat['Promos (All)'].QueueTop(smLRP, NoRules); //load ID to the Top of The Queue

 

Pal.WaitforTime ('18:00:01'); {## Wait for next hour

Cat['Promos (All)'].QueueTop(smLRP, NoRules); //load ID to the Top of The Queue

 

Pal.WaitforTime ('19:00:01'); {{## Wait for next hour}

Cat['Promos (All)'].QueueTop(smLRP, NoRules); //load ID to the Top of The Queue

 

Pal.WaitforTime ('20:00:01'); {{## Wait for next hour}

Cat['Promos (All)'].QueueTop(smLRP, NoRules); //load ID to the Top of The Queue

 

Pal.WaitforTime ('21:00:01'); {{## Wait for next hour}

Cat['Promos (All)'].QueueTop(smLRP, NoRules); //load ID to the Top of The Queue

 

Pal.WaitforTime ('22:00:01'); {{## Wait for next hour}

Cat['Promos (All)'].QueueTop(smLRP, NoRules); //load ID to the Top of The Queue

 

Pal.WaitforTime ('23:00:01'); {{## Wait for next hour}

Cat['Promos (All)'].QueueTop(smLRP, NoRules); //load ID to the Top of The Queue

//the script will now wait until 6:00pm and begin again.

 

I wonder if I should add "end;" at the end of the 23:00 line....thanks for helping me out.

 

Like I said, once it passes the 23:00:01 time slot, it begins again. So now all of the time slots have passed and it queues them all up again.

 

Do what I said before:

 

1- Take out the PAL.loop := true;

2- Schedule the job to be run once a day with the Event Scheduler (ES)

 

Then it will execute everything once and stop.

Spacial SVS Support Team

http://support.spacialaudio.com/forums/

Get help with PAL Scripts at http://www.palscripts.com

Link to comment
Share on other sites

Sorry for the delayed response. Okay I took out the PAL.LOOP = True and it began loading back to back voice dross at 18:00 instead of waiting until 23:00--ugh again!!!

 

I find that very hard to believe.

 

What is a "voice dross" ?

 

Post the script again.

Spacial SVS Support Team

http://support.spacialaudio.com/forums/

Get help with PAL Scripts at http://www.palscripts.com

Link to comment
Share on other sites

Sorry about that--meant to say "voice drop", I was typing that on my phone. Anyway, here's how the script was written when I last had it in the ES:

Pal.WaitforTime ('00:00:00'); {## Wait for next hour}

Cat['Promos (All)'].QueueBottom(smLRP, NoRules); //load ID to the Bottom of The Queue

Pal.WaitforTime ('01:00:00'); {## Wait for next hour}

Cat['Promos (All)'].QueueBottom(smLRP, NoRules); //load ID to the Bottom of The Queue

Pal.WaitforTime ('02:00:00'); {{## Wait for next hour}

Cat['Promos (All)'].QueueBottom(smLRP, NoRules); //load ID to the Bottom of The Queue

Pal.WaitforTime ('03:00:00'); {{## Wait for next hour}

Cat['Promos (All)'].QueueBottom(smLRP, NoRules); //load ID to the Bottom of The Queue

Pal.WaitforTime ('18:00:00'); {## Wait for next hour}

Cat['Promos (All)'].QueueBottom(smLRP, NoRules); //load ID to the Bottom of The Queue

Pal.WaitforTime ('19:00:00'); {{## Wait for next hour}

Cat['Promos (All)'].QueueBottom(smLRP, NoRules); //load ID to the Bottom of The Queue

Pal.WaitforTime ('20:00:00'); {{## Wait for next hour}

Cat['Promos (All)'].QueueBottom(smLRP, NoRules); //load ID to the Bottom of The Queue

Pal.WaitforTime ('21:00:00'); {{## Wait for next hour}

Cat['Promos (All)'].QueueBottom(smLRP, NoRules); //load ID to the Bottom of The Queue

Pal.WaitforTime ('22:00:00'); {{## Wait for next hour}

Cat['Promos (All)'].QueueBottom(smLRP, NoRules); //load ID to the Bottom of The Queue

Pal.WaitforTime ('23:00:00'); {{## Wait for next hour}

I also noticed that when I put it in ES, the script re-appeared in the PAL Scripts window as well.

Thanks

Link to comment
Share on other sites

I find that very hard to believe.

 

What is a "voice dross" ?

 

Post the script again.

 

Sorry 'bout that, I was typing on my phone. I meant to say "Voice Drop". Anyway, here's the script as it is structured now:

 

Pal.WaitforTime ('00:00:00'); {## Wait for next hour}

Cat['Promos (All)'].QueueBottom(smLRP, NoRules); //load ID to the Bottom of The Queue

 

Pal.WaitforTime ('01:00:00'); {## Wait for next hour}

Cat['Promos (All)'].QueueBottom(smLRP, NoRules); //load ID to the Bottom of The Queue

 

Pal.WaitforTime ('02:00:00'); {{## Wait for next hour}

Cat['Promos (All)'].QueueBottom(smLRP, NoRules); //load ID to the Bottom of The Queue

 

Pal.WaitforTime ('03:00:00'); {{## Wait for next hour}

Cat['Promos (All)'].QueueBottom(smLRP, NoRules); //load ID to the Bottom of The Queue

 

Pal.WaitforTime ('18:00:00'); {## Wait for next hour}

Cat['Promos (All)'].QueueBottom(smLRP, NoRules); //load ID to the Bottom of The Queue

 

Pal.WaitforTime ('19:00:00'); {{## Wait for next hour}

Cat['Promos (All)'].QueueBottom(smLRP, NoRules); //load ID to the Bottom of The Queue

 

Pal.WaitforTime ('20:00:00'); {{## Wait for next hour}

Cat['Promos (All)'].QueueBottom(smLRP, NoRules); //load ID to the Bottom of The Queue

 

Pal.WaitforTime ('21:00:00'); {{## Wait for next hour}

Cat['Promos (All)'].QueueBottom(smLRP, NoRules); //load ID to the Bottom of The Queue

 

Pal.WaitforTime ('22:00:00'); {{## Wait for next hour}

Cat['Promos (All)'].QueueBottom(smLRP, NoRules); //load ID to the Bottom of The Queue

 

Pal.WaitforTime ('23:00:00'); {{## Wait for next hour}

Cat['Promos (All)'].QueueBottom(smLRP, NoRules); //load ID to the Bottom of The Queue

 

//the script will now wait until Midnight and begin again.

 

 

I save this as a .cwf script and I noticed that when I put it in the ES it showed up in the PAL Script window too. Thanks for helping me out.

R2

Link to comment
Share on other sites

1- This is a PAL script, not a Clockwheel script.

 

2- I ran it on my server for 24 hours and it worked perfectly.

 

3- If you put it in the Event Scheduler and it shows up again in the PAL scripts window, something is WRONG !!

 

Again, go over what I told you before. Save as a PAL script and kick it off every day with the Event Scheduler at midnight. You should change the first line from:

[i]Pal.WaitforTime ('00:00:00');[/i]

to:

[i]Pal.WaitforTime ('00:00:15');[/i]

to give the ES time to process this job.

Spacial SVS Support Team

http://support.spacialaudio.com/forums/

Get help with PAL Scripts at http://www.palscripts.com

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...