How to play random sound?

Nonhocapito

New member
I have a working shellscript which neatly picks a random sound file from a folder.

However, the "play sound" action on MD does not allow to play a file from a given string.

Any idea on how to circumvent this?
Can playing sound be activated via shellscript?

I have root...
 

Nonhocapito

New member
See if this forum post helps. It works around the inability for the Play Sound action to point to any file name, by copying the desired sound file to a fixed location in the Documents folder, then it plays that fixed file name.
This worked great. Later I tried to apply the same idea to the wallpaper picker (picking a random wallpaper and copying to a specific one), but it doesn't work. It seems md wallpaper picker creates a cached copy somewhere, and uses that one.
 
Top