AminetAminet
Search:
82051 packages online
About
Recent
Browse
Search
Upload
Setup
Services

mus/play/JukeboxAdder.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:Add files to Jukebox from Ambient etc.
Author:jPV^RNO
Uploader:jpv amigascne org (jPV^RNO)
Type:mus/play
Version:1.2
Architecture:ppc-morphos >= 3.4.0
Date:2013-12-19
Download:http://aminet.net/mus/play/JukeboxAdder.lha - View contents
Readme:http://aminet.net/mus/play/JukeboxAdder.readme
Downloads:367
ABOUT
-----

A script to add files to Jukebox from Ambient or other programs.
Lua and ARexx versions included.


INSTALLATION
------------

copy jukeboxadder.lua to SYS:S/ (or any location you want)


USAGE
-----

luax jukeboxadder.lua <cmd> <file/dir>

where <cmd> is:
   PLAY - clear current playlist and play the given file or dir
   ADD - add file or dir to current playlist
   ADDPLAY - add file or dir to the playlist and start playing

Tips with Ambient mimetypes:
   - Use PLAY for DoubleClick and others as Menu items
   - DON'T tick Merge selection
   - You can make mimetypes for files and directories
   - Example command:
        (AmigaDOS) MOSSYS:C/LuaX S:jukeboxadder.lua PLAY %sp


EXAMPLE MIMETYPE CONFIGURATIONS
-------------------------------

For adding directories into Jukebox edit
SYS:Prefs/Ambient/filetypes/internal/x-morphos-globalaction-directory file
and add the following lines before the last "End" line:

Action
	Name Play in Jukebox
	Menu Jukebox
	Event Menu
	Command AMIGADOS MOSSYS:C/LuaX S:jukeboxadder.lua PLAY %sp
	End
Action
	Name Add to Jukebox
	Menu Jukebox
	Event Menu
	Command AMIGADOS MOSSYS:C/LuaX S:jukeboxadder.lua ADD %sp
	End
Action
	Name Add to Jukebox and play
	Menu Jukebox
	Event Menu
	Command AMIGADOS MOSSYS:C/LuaX S:jukeboxadder.lua ADDPLAY %sp
	End


For adding mp3 files into Jukebox edit SYS:Prefs/Ambient/filetypes/audio/mpeg
file and add the following lines before the last "End" line:

Action
	Name Play in Jukebox
	Event DoubleClick
	Command AMIGADOS MOSSYS:C/LuaX S:jukeboxadder.lua PLAY %sp
	End
Action
	Name Add to Jukebox
	Event Menu
	Command AMIGADOS MOSSYS:C/LuaX S:jukeboxadder.lua ADD %sp
	End
Action
	Name Add to Jukebox and play
	Event Menu
	Command AMIGADOS MOSSYS:C/LuaX S:jukeboxadder.lua ADDPLAY %sp
	End


Or if you don't have those files, create corresponding mimetypes with Ambient's
mime editor.


HISTORY
-------

1.1 (10.11.2013) - Launch Jukebox with WBRun to preserve saved settings
1.2 (15.12.2013) - Lua version


Contents of mus/play/JukeboxAdder.lha
PERMISSION  UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP     NAME
---------- ----------- ------- ------- ------ ---------- ------------ ----------
[generic]                  196     297  66.0% -lh5- cf63 Sep 28 11:34 JukeboxAdder/ARexx_version/filetypes/WARNING.txt
[generic]                  801    2050  39.1% -lh5- 5db9 Nov 10 17:24 JukeboxAdder/ARexx_version/jukeboxadder.readme
[generic]                  642    1395  46.0% -lh5- ca1a Dec 15 19:27 JukeboxAdder/ARexx_version/jukeboxadder.rexx
[generic]                  213     473  45.0% -lh5- 03e7 Nov 18 20:49 JukeboxAdder/filetypes/audio/mpeg
[generic]                  291     722  40.3% -lh5- 0575 Nov 18 20:50 JukeboxAdder/filetypes/internal/x-morphos-globalaction-directory
[generic]                  196     297  66.0% -lh5- cf63 Sep 28 11:34 JukeboxAdder/filetypes/WARNING.txt
[generic]                  735    1561  47.1% -lh5- 301d Dec 14 20:51 JukeboxAdder/jukeboxadder.lua
[generic]                  848    2192  38.7% -lh5- deb3 Dec 15 13:51 JukeboxAdder/jukeboxadder.readme
[generic]                  204     452  45.1% -lh5- 3b7b Sep 28 11:34 JukeboxAdder/ARexx_version/filetypes/audio/mpeg
[generic]                  292     701  41.7% -lh5- f62d Sep 28 11:34 JukeboxAdder/ARexx_version/filetypes/internal/x-morphos-globalaction-directory
[generic]                73382   73382 100.0% -lh0- ad64 Sep 28 11:34 JukeboxAdder/Preview/jukeboxadder_dirs.png
[generic]                90744   90744 100.0% -lh0- 0c4e Sep 28 11:34 JukeboxAdder/Preview/jukeboxadder_files.png
---------- ----------- ------- ------- ------ ---------- ------------ ----------
 Total        12 files  168544  174266  96.7%            Dec 19 21:37

Aminet © 1992-2017 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>