My new mAirlist layout...

I don’t think you have the right snapshot Lackster. I downloaded them a few days ago (v2.2 and v3.x) and all is okay for both…

How strange, i downloaded the V3 snapshot yesterday at the same time as this script. it appeared to install fine, i’ll try it again to double check.

I promise we’ll get this sorted very soon ;D

can i check if i have the latest snapshot anywhere?

What a wally, i was downloading the latest snapshot but then trying to install another file.

i have done that now and it appears to be working as im not getting any errors now. I just cant try it out because i cant get the actions button to appear (see other thread).

Can i just check, when i download this script and .exe, i just put them both in the scripts folder (for example) and just tweek the script file as to the locations etc and that is it.

or do i have to do anything with the .exe.?

Many Thanks for your perseverance with me!

Hi Lackster you will find the options for scripts inside Events.

Events/Add/Actions/Add/Miscellaneous/Run Script

Kind Regards tony

Super, thanks tony. that worked as it should,

I can tell now it is trying to do something, but i get this error:

Runtime error: (32,2) Exception: Error loading playlist: Error loading C:\Program Files\mAirList\scripts\random_playlist_v3\playlist.m3u

04 April 2009, 12:22:37 PM

Program Version 3.0.0 Build 533

Call stack:

(004DFB33) [008E0B33]
(0050EDB8) [0090FDB8]
(004E0485) [008E1485]
(00259702) [0065A702]
(001CE8CD) [005CF8CD]
(0002E37F) [0042F37F]
(00081081) [00482081]
(00081D48) [00482D48]
(0002E24B) [0042F24B]
(00071FED) [00472FED]
(000BEFAC) [004BFFAC]
(0007247F) [0047347F]
(00071AFF) [00472AFF]
(0007239A) [0047339A]
(00003ACB) [00404ACB]
(00071AFF) [00472AFF]
(0000398E) [0040498E]
(0007178C) [0047278C]
(0007521E) [0047621E]
(000752E6) [004762E6]
(0007178C) [0047278C]
(000754F1) [004764F1]
(00075857) [00476857]
(000C0F3D) [004C1F3D]
(000C0F7E) [004C1F7E]
(000C37C5) [004C47C5]
(00075128) [00476128]
(0002EA20) [0042FA20]
(0002F2A6) [004302A6]
(0008F7AC) [004907AC]
(0008F7E6) [004907E6]
(0008BDE7) [0048CDE7]
(00203AA1) [00604AA1]
(00066AF7) [00467AF7]
(00067FFB) [00468FFB]
(0006915A) [0046A15A]
(000690A9) [0046A0A9]
(0002EA20) [0042FA20]
(0008F7AC) [004907AC]
(0008F7E6) [004907E6]
(0008FA06) [00490A06]
(0048486A) [0088586A]
(004849E4) [008859E4]
(0050F4F0) [009104F0]
(00519C80) [0091AC80]

It looks similar, but not the same to an error earlier in this thread, though im not sure if they are linked?

Many thanks

Can you please download the mAirList.jdbg (formerly mAirList.map) from the snapshot directory and save it along with your mAirList.ini?

I believe this is an ordinary “file not found” type of error which is just not handled correctly. There should be no error dialog popping up when an error occurs in a script. The error message should rather be put into the system log. The extended error report from mAirList.jdbg will help be to find the mistake.

Lackster,

The exe file will generate a “playlist.m3u” file at the same location than the exe. So, if the launch of the exe file is ok, the file should be in the same directory. If mAirlist “find” the exe file, mAirlist has to find the “m3u” because directory string is shared for both.

So, if the problem is not in mAirlist, I think parameters are not corrects.

Lackster, don’t forget, we will manage to help you until all works fine ;D

ok, here we go again guys…

the files that i got with the download are all in the same location (the scripts folder)

i have also downloaded the .jdbg and this is what it says:

Runtime error: (32,2) Exception: Error loading playlist: Error loading C:\Program Files\mAirList\scripts\random_playlist_v3\playlist.m3u

06 April 2009, 07:12:18 PM

Program Version 3.0.0 Build 533

Call stack:

[008E0B33] OnTheFlyDatabaseConfig…TOnTheFlyDatabaseConfigForm (Line 253, “”) + $129
[0090FDB8] JvWizard…TJvWizardPageHeader (Line 308, “” + 0) + $8B6
[008E1485] uPSI_ZDbcIntfs.SIRegister_IZSequence (Line 91, “uPSI_ZDbcIntfs.pas” + 14) + $67
[0060484B] Main.TMainForm.FormCreate (Line 562, “GUI\Main.pas” + 320) + $153
[00467AF7] Menus.TMenuItem.GetChildren + $27
[00468FFB] Menus.TMenu.Create + $3B
[0046A15A] Menus.ProcessAccels + $5E
[0046A0A9] Menus.TMainMenu.Unmerge + $5
[0042FA20] Classes.MakeObjectInstance + $30
[004907AC] Forms.TApplication.IsKeyMsg + $BC
[004907E6] Forms.TApplication.IsHintMsg + $2
[00490A06] Forms.TApplication.ProcessMessage + $E6
[0088586A] uROXDOM_2_3.TdomXPathAxisNameAncestor.getAxisNodeSnapshot (Line 29719, “uROXDOM_2_3.pas” + 0) + $6
[00885970] uROXDOM_2_3.TdomXPathAxisNameAncestorOrSelf.getAxisNodeSnapshot (Line 29756, “uROXDOM_2_3.pas” + 4) + $0
[009104F0] JvWizard…TJvWizardCustomPage (Line 308, “” + 0) + $FEE
[0091AC80] MixdownModuleConfig.TMixdownModuleConfigForm.btnMixdownAddClick (Line 50, “MixdownModuleConfig.pas” + 6) + $3

I hope that makes more sense to you than it does me ! :wink:

Fingers crossed we’ll have this sorted by 2010!

best wishes

The call stack looks suspiciously mixed up. The mAirList.exe and mAirList.jdbg file probably don’t match. I believe I forgot to update the jdbg file before uploading it.

Lackster,

Could you check that playlist.m3u exists in the folder ? And could you edit it with the notepad ? Does mp3 list appear into it ?

hi, no extra files are appearing in the folder currently - so no plalist.m3u im afraid.

best wishes

Any more thoughts on this as yet??

Many Thanks for all your help.

Hi Lackster, no solution so see your pm for an address to send your files.

Kind Regards Tony

Lackster, could you make a try :

Open a terminal (Start > Execute > “cmd”)
Move to the directory where “random_playlist.exe” is stored.

Then, write
[tt]random_playlist D:\YOUR_PATH mp3 4[/tt]
(Replace “YOUR_PATH” by the real directory where the audio files are stored, and “mp3” by the audio file extension you want to scan).

If it’s okay, you should find a “playlist.m3u” file in the current directory, which contains 4 items.

Does it works fine ?

Hi Lackster and Theo, the only thing I can suggest from looking at Lacksters files is the drive you are looking at.

Is the I drive:

Internal to the PC?
A portable or network drive?
Connected?

As your files works fine for me including across a portable drive.

Kind Regards tony

Hi to you both…

The I: is the drive of my external hard-drive…

Theo, Im not too sure what you meant by :

Open a terminal (Start > Execute > “cmd”)
Move to the directory where “random_playlist.exe” is stored.

Is that in mairlist??

Also, i have just tried the script with mairlist on another machine and am still getting the same error message! This time i tried getting it to search music from within a folder in my music (so actually on the machine).

This is the error message i was getting:

Runtime error: (32,2) Exception: Error loading playlist: Error loading C:\Program Files\mAirList\scripts\random_playlist_v3\playlist.m3u

10 April 2009, 01:05:00 PM

Program Version 3.0.0 Build 533

Call stack:

[008E0B33] OnTheFlyDatabaseConfig…TOnTheFlyDatabaseConfigForm (Line 253, “”) + $129
[0090FDB8] JvWizard…TJvWizardPageHeader (Line 308, “” + 0) + $8B6
[008E1485] uPSI_ZDbcIntfs.SIRegister_IZSequence (Line 91, “uPSI_ZDbcIntfs.pas” + 14) + $67
[0065A702] FMTBcd.PadInputString + $6
[005CF8CD] GraphicEx.TPSPGraphic.ReadImageProperties (Line 6664, “GraphicEx.pas” + 0) + $1
[0042F37F] Classes.TBasicAction.SetOnExecute + $1B
[00482081] ActnList…TAction + $305
[00482D48] ActnList.TCustomAction.SetHelpContext + $2C
[0042F24B] Classes.TBasicActionLink.Update + $3
[00472FED] Controls.DoWriteExplicit + $18D
[004BFFAC] ComCtrls.TTabStrings.GetCount + $4
[0047347F] Controls.TControl.CheckNewSize + $63
[00472AFF] Controls.TControl.WndProc + $4B
[0040498E] System.@IsClass + $16
[00402F68] System.@GetMem + $4
[004058AC] System.WCharFromChar + $0
[0047278C] Controls.TControl.ManualFloat + $8C
[0047621E] Controls.TWinControl.UpdateShowing + $FE
[004762E6] Controls.TWinControl.SetParentWindow + $5E
[0047278C] Controls.TControl.ManualFloat + $8C
[004764F1] Controls.TWinControl.ControlAtPos + $41
[00476857] Controls.TWinControl.WndProc + $E3
[004C1F3D] ComCtrls.TPageControl.CMDesignHitTest + $9
[004C1F7E] ComCtrls.TPageControl.CMDesignHitTest + $4A
[004C47C5] ComCtrls.TTreeNode.ReadData + $49
[00476128] Controls.TWinControl.UpdateShowing + $8
[0042FA20] Classes.MakeObjectInstance + $30
[004302A6] Contnrs.TComponentList.Notify + $2A
[004907AC] Forms.TApplication.IsKeyMsg + $BC
[004907E6] Forms.TApplication.IsHintMsg + $2
[0048CDE7] Forms.TCustomForm.Show + $7
[00604DBE] Main.TMainForm.FormCreate (Line 562, “GUI\Main.pas” + 320) + $6C6
[0042F37F] Classes.TBasicAction.SetOnExecute + $1B
[00482081] ActnList…TAction + $305
[00482D48] ActnList.TCustomAction.SetHelpContext + $2C
[0042F24B] Classes.TBasicActionLink.Update + $3
[00472FED] Controls.DoWriteExplicit + $18D
[004BFFAC] ComCtrls.TTabStrings.GetCount + $4
[0047347F] Controls.TControl.CheckNewSize + $63
[00472AFF] Controls.TControl.WndProc + $4B
[0040498E] System.@IsClass + $16
[0047278C] Controls.TControl.ManualFloat + $8C
[0047621E] Controls.TWinControl.UpdateShowing + $FE
[004762E6] Controls.TWinControl.SetParentWindow + $5E
[0047278C] Controls.TControl.ManualFloat + $8C
[004764F1] Controls.TWinControl.ControlAtPos + $41
[00476857] Controls.TWinControl.WndProc + $E3
[004C1F3D] ComCtrls.TPageControl.CMDesignHitTest + $9
[004C1F7E] ComCtrls.TPageControl.CMDesignHitTest + $4A
[004C47C5] ComCtrls.TTreeNode.ReadData + $49
[00476128] Controls.TWinControl.UpdateShowing + $8
[0042FA20] Classes.MakeObjectInstance + $30
[004302A6] Contnrs.TComponentList.Notify + $2A
[004907AC] Forms.TApplication.IsKeyMsg + $BC
[004907E6] Forms.TApplication.IsHintMsg + $2
[00490A06] Forms.TApplication.ProcessMessage + $E6
[0088586A] uROXDOM_2_3.TdomXPathAxisNameAncestor.getAxisNodeSnapshot (Line 29719, “uROXDOM_2_3.pas” + 0) + $6
[00885970] uROXDOM_2_3.TdomXPathAxisNameAncestorOrSelf.getAxisNodeSnapshot (Line 29756, “uROXDOM_2_3.pas” + 4) + $0
[009104F0] JvWizard…TJvWizardCustomPage (Line 308, “” + 0) + $FEE
[0091AC80] MixdownModuleConfig.TMixdownModuleConfigForm.btnMixdownAddClick (Line 50, “MixdownModuleConfig.pas” + 6) + $3

I am using the latest snapshot for this also…

Im just wondering whether either of you could post the content of your script on here, so that i could just tweak drives, so i can make dead sure that i am doing it right.

in the first place to try and get the script to work, All i did was extract the contents of the zip folder to the mairlist script folder, change the drive info around and run it. i havent tried anything else with it.

On the second machine i tried it on, here is what i put into the script…

{--------------------------------------------------------------------------------------
Generates a random playlist from a directory and audio files, and load it to mAirlist.
Require the “random_playlist.exe” file for correctly working.

Author: Theo
Date: 2009-04-01

See http://www.mAirList.com for further information.
---------------------------------------------------------------------------------------}
const
// Change the values here for your current settings.
RANDOM_PLAYLIST_EXE_DIRECTORY = 'C:\Program

Files\mAirList\scripts\random_playlist_v3’;
RANDOM_PLAYLIST_EXE_FILENAME = ‘random_playlist_v3.exe’;
TIME_TO_WAIT_BETWEEN_GENERATION_AND_LOAD = 2; // in seconds

DIRECTORY_TO_SEARCH = 'C:\Documents and Settings\Phil\My Documents\My 

Music\Amazon MP3\Calvin Harris\I’‘m Not Alone’;
EXTENSION_TO_SEARCH = ‘mp3’;
NB_ITEMS_TO_LOAD = 5;

// Do not touch what is below.
var
Playlist_to_append : IPlaylist;
begin
// Launch the exe file for generating the temporary random playlist.
ShellExecuteHidden(RANDOM_PLAYLIST_EXE_DIRECTORY +

RANDOM_PLAYLIST_EXE_FILENAME, DIRECTORY_TO_SEARCH + ’ ’ +

EXTENSION_TO_SEARCH + ’ ’ + IntToStr(NB_ITEMS_TO_LOAD));

// Wait until the specified time before loading the playlist.
sleep(TIME_TO_WAIT_BETWEEN_GENERATION_AND_LOAD*1000);

// Do not change the name of the file because it's this name that is generated by the 

exe file.
Playlist_to_append :=

Factory.CreatePlaylistFromFile(RANDOM_PLAYLIST_EXE_DIRECTORY + ‘playlist.m3u’);
CurrentPlaylist.AppendPlaylist(Playlist_to_append)
end.

Hi Lackster, Theo is asking you to run a dos commond prompt.

Paths etc in your script look fine so no benefit in posting my files but next time in the studio will make a copy.

Kind Regards tony

Ahh right, so when i open dos, i just type in the following

random_playlist D:\YOUR_PATH mp3 4

Not too familiar with Dos im afraid.

Thanks

OK, just tried in DOS, have entered what you advised and it tells me the following:

‘random playlist’ is not recognized as an internal or external command, operable program or batch file.

Neither does it add a playlist.m3u into the scripts folder or mairlist.

I really don’t understand why i am having this problem on 2 seperate machines when everybody else is getting it to work instantly!

Thanks for your perseverance with me

Lackster

'random playlist' is not recognized as an internal or external command, operable program or batch file.

You are not in the right directory to launch it. The message you got lets us know that DOS is not able to find the program in the directory you were.

For checking if the “random_playlist.exe” is accessible, try to write “dir” and check if you see, in the displayed list, the software.

Until you get this error message, you won’t have any “playlist.m3u” generated file. And until you don’t have a “playlist.m3u” generated file, you will have the error that block you.