Skip to Content
It is currently December 8th, 2021, 2:07 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: September 21st, 2021, 12:10 am 
Offline
Junior User
Junior User

Joined: January 31st, 2009, 9:43 pm
Posts: 61
Team,
Apologies if this has been answered previously. I did a search through the forums and could not find anything that will help according to my requirements. Appreciate any help on this.
I have 184 folders in external drive with 40,000+ songs, is it possible to import the directory into sam CATEGORY "MUSIC" along with the songs for each directory. I am estimating it may take more than an hour to add the folders and then adding the songs once the folders are created in the category. Any PAL script that is available here would be helpful.

Following my original post I tried the below, however it comes up with an error "more arguments expected"
Code:
CAT['Music'].AddDir('D:\Music\');True;'ipBottom');


Top
 Profile  
Reply with quote  
PostPosted: September 22nd, 2021, 6:54 am 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 8299
Location: Cologne (Germany)
That's because you messed up the syntax.

Parameters/Arguments to a function are separated by comma. Semicolons are only used to terminate a statement/line. Also the closing brace in the middle makes no sense at all. EDIT: ipBottom is a constant/variable from SAM, not a string. If you want to enter the literal value: I think ipBottom is 0 and ipTop is 1.As PAL/Delphi is a type-safe language, you can't convert stuff on the fly.
Code:
CAT['Music'].AddDir('D:\Music\',True,ipBottom);

_________________
Benedikt Bauer - SVS (Spacial Volunteer Support)

Shop for readymade PAL scripts by countrywesterndj - Or get a custom script made by me (or others)

My Project:
Send "Now Playing" from SAM to Twitter and/or Facebook | Sourcecode


Last edited by Mastacheata on October 29th, 2021, 9:38 am, edited 1 time in total.
Edited this post with the findings from DJ Cassio that I overlooked when first replying


Top
 Profile  
Reply with quote  
PostPosted: October 29th, 2021, 3:12 am 
Offline
Junior User
Junior User

Joined: January 31st, 2009, 9:43 pm
Posts: 61
Ok so finally owner of latest 2021 SAM after lot of testing. I am still working on adding the folders and as per you grateful suggestion it still pops up with the below error for
Code:
CAT['Music'].AddDir('D:\Music\',True,'ipBottom');
with this error
Code:
"Argument 2 expects type "Integer" instead of "String"


Top
 Profile  
Reply with quote  
PostPosted: October 29th, 2021, 9:08 am 
Offline
SVS Member
SVS Member

Joined: May 8th, 2004, 9:00 am
Posts: 10551
Location: Denver, CO
ipbottom should not be surrounded by apostrophe's.

_________________
- Rob Oyler, SVS
Image


Top
 Profile  
Reply with quote  
PostPosted: October 29th, 2021, 9:40 am 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 8299
Location: Cologne (Germany)
DJ Cassio wrote:
ipbottom should not be surrounded by apostrophe's.

Ohh, I didn't notice the single quotes when I replied here. I edited my original post as to not have a copy-paste-ready example that is broken.

_________________
Benedikt Bauer - SVS (Spacial Volunteer Support)

Shop for readymade PAL scripts by countrywesterndj - Or get a custom script made by me (or others)

My Project:
Send "Now Playing" from SAM to Twitter and/or Facebook | Sourcecode


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 26 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group