Solved How can I shuffle music from an SD card? OSX

February 10, 2015 at 07:04:26
Specs: Macintosh OSX 10.9.5
I want to be able to play a shuffle list of music from an SD card rather than an alphabetical list of albums, played in sequence. Has anyone ever written a batch file that will add random numbers to the files after they are on the SD card? Has anyone ever produced a script to do this?

See More: How can I shuffle music from an SD card? OSX

Report •


✔ Best Answer
February 10, 2015 at 21:22:04
Here's one way to do it in Winders:

::====== script starts here ===============
::
:: shuf.bat 2015-02-11 10:45:51.01
@echo off & setLocal enableDELAYedeXpansioN

pushd "Y:\cartalk-collection\CarTalk\CarTalk #1401-1426"
@echo off > SHUFFLE.M3U
@echo off > NEWFILE

:main
for /f "tokens=* delims= " %%a in ('dir/b *.mp3') do (
echo.!RANDOM! %%a
) >> NEWFILE
sort < NEWFILE > #

:sub1
for /f "tokens=1* delims= " %%i in (#) do (
echo.%%j
) >> SHUFFLE.M3U
del NEWFILE & del #
goto :eof
::====== script ends here =================

=====================
M2 Golden-Triangle



#1
February 10, 2015 at 09:45:35
I assume you mean when playing on your computer. In which case you shouldn't have to get into batch files. The ability to use shuffle will be a function of your player software - maybe you need a different program if that facility is not already provided. Can't add much more as I'm none too familiar with MACs.

Always pop back and let us know the outcome - thanks


Report •

#2
February 10, 2015 at 12:01:39
Hi Derek

Many thanks for your reply. Actually, the SD card is going into a portable bluetooth speaker and I was wamting to shuffle musiic from the SD card rather than from my galaxy which has only 16GB capacity, and the music file is 20GB.


Report •

#3
February 10, 2015 at 12:44:02
OK, I see now thanks. In which case maybe a batch file is the option then. I'm sure it can be done somehow but best wait for someone better at those than I am.

Always pop back and let us know the outcome - thanks


Report •

Related Solutions

#4
February 10, 2015 at 19:32:46
A batch can do. But this is OSX. Batch no woeky.

=====================
M2 Golden-Triangle


Report •

#5
February 10, 2015 at 21:22:04
✔ Best Answer
Here's one way to do it in Winders:

::====== script starts here ===============
::
:: shuf.bat 2015-02-11 10:45:51.01
@echo off & setLocal enableDELAYedeXpansioN

pushd "Y:\cartalk-collection\CarTalk\CarTalk #1401-1426"
@echo off > SHUFFLE.M3U
@echo off > NEWFILE

:main
for /f "tokens=* delims= " %%a in ('dir/b *.mp3') do (
echo.!RANDOM! %%a
) >> NEWFILE
sort < NEWFILE > #

:sub1
for /f "tokens=1* delims= " %%i in (#) do (
echo.%%j
) >> SHUFFLE.M3U
del NEWFILE & del #
goto :eof
::====== script ends here =================

=====================
M2 Golden-Triangle


Report •


Ask Question