Running MM under Mac OS X with Wineskin

Any ideas about how to improve MediaMonkey for Windows 4? Let us know!

Moderator: Gurus

markstuartwalker
Posts: 931
Joined: Fri Jul 10, 2009 8:10 am

Running MM under Mac OS X with Wineskin

Post by markstuartwalker »

Play on Mac can run MM on a Mac ...

It was very easy. From recent recollection...

Downloaded PlayOnMac from http://www.playonmac.com/en/download.html 1.3.21 and installed

Created a new application for Internet Explorer 6 (this is probably the bit you missed). Note: "Application" is POM's terminology for a Wine Prefix.

Configure a sound driver for the Wine Prefix.

Added to that application the MM3 installation and created a shortcut for the non-skinned exe.

Added to that application an MM4 portable installation and created a shortcut for the non-skinned exe.

I must point out that I haven't done any thorough testing, indeed the check was pretty superficial.

You can expect an exception to be thrown at startup. This is normal.
Last edited by markstuartwalker on Wed Oct 19, 2011 1:45 am, edited 2 times in total.
Windows 7,8 / Ubuntu 13.10 / Mavericks 10.9 / iOS 7.1 / iTunes 11.1
iTunes plugin (d_itunes & itunes4) http://www.mediamonkey.com/forum/viewto ... =2&t=45713
Running MM under Mac OS X with Wine http://www.mediamonkey.com/forum/viewto ... =4&t=58507
markstuartwalker
Posts: 931
Joined: Fri Jul 10, 2009 8:10 am

Re: Running MM under Mac OS X

Post by markstuartwalker »

I forgot to mention that the MAD Audio plugin needs to be included as well.
Windows 7,8 / Ubuntu 13.10 / Mavericks 10.9 / iOS 7.1 / iTunes 11.1
iTunes plugin (d_itunes & itunes4) http://www.mediamonkey.com/forum/viewto ... =2&t=45713
Running MM under Mac OS X with Wine http://www.mediamonkey.com/forum/viewto ... =4&t=58507
Tripnologist
Posts: 1
Joined: Fri Jun 17, 2011 8:22 am

Re: Running MM under Mac OS X

Post by Tripnologist »

I registered just so I could thank you for your post.

So, yeah, thank you SO SO much for this!!!!!!
I have a PC and a Mac and while I love them both, I absolutely hate playing music on the MBP because it means having to use itunes.
I'll definitely be giving this a go in the next couple days.
markstuartwalker
Posts: 931
Joined: Fri Jul 10, 2009 8:10 am

Re: Running MM under Mac OS X

Post by markstuartwalker »

Welcome to the world of MM.

I'm only too happy to help.
Windows 7,8 / Ubuntu 13.10 / Mavericks 10.9 / iOS 7.1 / iTunes 11.1
iTunes plugin (d_itunes & itunes4) http://www.mediamonkey.com/forum/viewto ... =2&t=45713
Running MM under Mac OS X with Wine http://www.mediamonkey.com/forum/viewto ... =4&t=58507
markstuartwalker
Posts: 931
Joined: Fri Jul 10, 2009 8:10 am

Re: Running MM under Mac OS X

Post by markstuartwalker »

After doing a recent rebuild I realised that you also need to configure the Mac sound driver for Wine too.
Windows 7,8 / Ubuntu 13.10 / Mavericks 10.9 / iOS 7.1 / iTunes 11.1
iTunes plugin (d_itunes & itunes4) http://www.mediamonkey.com/forum/viewto ... =2&t=45713
Running MM under Mac OS X with Wine http://www.mediamonkey.com/forum/viewto ... =4&t=58507
markstuartwalker
Posts: 931
Joined: Fri Jul 10, 2009 8:10 am

Re: Running MM under Mac OS X

Post by markstuartwalker »

Just in case someone is tempted (like me) I suggest NOT installing POM 2.5 as it doesn't work for me.

Anyone used Wineskin? http://wineskin.doh123.com
Windows 7,8 / Ubuntu 13.10 / Mavericks 10.9 / iOS 7.1 / iTunes 11.1
iTunes plugin (d_itunes & itunes4) http://www.mediamonkey.com/forum/viewto ... =2&t=45713
Running MM under Mac OS X with Wine http://www.mediamonkey.com/forum/viewto ... =4&t=58507
markstuartwalker
Posts: 931
Joined: Fri Jul 10, 2009 8:10 am

Re: Running MM under Mac OS X

Post by markstuartwalker »

As I mentioned about I've been trying POM 2.5. This was on a fresh build and I ran into various problems not all of which come from the new release. Here is my slightly amended approach (mainly to circumvent the POM screens and use winetricks) ...

* Install xquartz 2.6.2 from http://xquartz.macosforge.org/trac/wiki/Releases
* Logout and login to allow this to replace the standard X11
* Install POM 2.5 from http://www.playonmac.com/en/download.html
* Launch POM
* Install (via Unsupported Application) the MM4 installation into a new prefix (called MM4). Do NOT launch MM at the end of the installation.
* At the very end of installation create a POM shortcut for the "MediaMonkey (non-skinned).exe" executable
* Use Tools/Manage Wine Versions to download the Wine version of your choice (1.3.19 in my case)
* Use Tools/Manage Wine Versions to set the wine version for this new application to 1.3.19
* Open a terminal window
* Download winetricks using "curl http://winetricks.org/winetricks > winetricks". Make this executable with chmod +x winetricks
* Append the wine path "PATH="/Users/<your user>/Library/PlayOnMac/WineVersions/1.3.19/bin/:$PATH""
* Set the prefix location with "export WINEPREFIX="/Users/dad/Library/PlayOnMac//wineprefix/MM4""
* Install some additions to the prefix with "./winetricks ie6 corefonts vcrun6 vb6run wsh56"

You can now run MM4 from with POM.
Windows 7,8 / Ubuntu 13.10 / Mavericks 10.9 / iOS 7.1 / iTunes 11.1
iTunes plugin (d_itunes & itunes4) http://www.mediamonkey.com/forum/viewto ... =2&t=45713
Running MM under Mac OS X with Wine http://www.mediamonkey.com/forum/viewto ... =4&t=58507
markstuartwalker
Posts: 931
Joined: Fri Jul 10, 2009 8:10 am

Re: Running MM under Mac OS X

Post by markstuartwalker »

OK, I've been doing alot of learning!

I have played about with installing wine natively via MacPorts http://www.macports.org/ which took AGES to compile. Useful but pretty raw. I wanted something more elegant.

Then I went back to WineSkin http://wineskin.doh123.com/ . This was very sucessful :-). I've stopped using POM now.

Have a read of the website to find out details but in a nutshell I have created a Mac MM.app folder which contains a the MM3 and MM4 exe files together with the magic collection of ie6,corefonts,vbrun6,vb6run and wsh56 plus the MAD plugin. When I open the application I have MM running under Wine on my Mac.

The screenshot is bland but the user experience is brilliant! http://www.mediafire.com/?ygf5vsrc9huct7y

I must say that the Macbook Air's SSD makes MM go like the wind - faster than either my Windows 7 laptop or my Ubuntu desktop.
Windows 7,8 / Ubuntu 13.10 / Mavericks 10.9 / iOS 7.1 / iTunes 11.1
iTunes plugin (d_itunes & itunes4) http://www.mediamonkey.com/forum/viewto ... =2&t=45713
Running MM under Mac OS X with Wine http://www.mediamonkey.com/forum/viewto ... =4&t=58507
markstuartwalker
Posts: 931
Joined: Fri Jul 10, 2009 8:10 am

Re: Running MM under Mac OS X with Wine

Post by markstuartwalker »

The USBMass1 plugin works fine when outputting to a file share so that my Mac iTunes can read it.

The UPNP media sharing doesn't work though :-(. I will investigate further ...
Windows 7,8 / Ubuntu 13.10 / Mavericks 10.9 / iOS 7.1 / iTunes 11.1
iTunes plugin (d_itunes & itunes4) http://www.mediamonkey.com/forum/viewto ... =2&t=45713
Running MM under Mac OS X with Wine http://www.mediamonkey.com/forum/viewto ... =4&t=58507
markstuartwalker
Posts: 931
Joined: Fri Jul 10, 2009 8:10 am

Re: Running MM under Mac OS X with Wine

Post by markstuartwalker »

To get the MAD plugin to work you also need to delete the f_ape.dll and f_mpe.dll plugins.

... as I found out after installing MM 4.0.0.1400 and it stopped working!
Windows 7,8 / Ubuntu 13.10 / Mavericks 10.9 / iOS 7.1 / iTunes 11.1
iTunes plugin (d_itunes & itunes4) http://www.mediamonkey.com/forum/viewto ... =2&t=45713
Running MM under Mac OS X with Wine http://www.mediamonkey.com/forum/viewto ... =4&t=58507
markstuartwalker
Posts: 931
Joined: Fri Jul 10, 2009 8:10 am

Re: Running MM under Mac OS X with Wine

Post by markstuartwalker »

I use MM's USBMass1 plugin to export a file structure. http://www.mediamonkey.com/forum/viewto ... =4&t=58837

By using the follwoing script I can import into a Mac instance of iTunes.

Code: Select all

(*
*)


on readFile(unixPath)
	set foo to (open for access (POSIX file unixPath))
	set txt to (read foo for (get eof foo))
	close access foo
	return txt
end readFile

-- Where all the playlists are
set playlistFolder to choose folder with prompt "Please choose the folder containing the Playlists"
set playlistFiles to my getPlaylistNames(playlistFolder)


--
--
--set root to playlistFolder as string
set addCount to 0

set playlistcount to count of playlistFiles
repeat with i from 1 to the playlistcount
	
	-- the filename
	set theFile to item i of playlistFiles
	
	-- build the playlist name
	set theName to my nameOf(POSIX path of theFile)
	display dialog "Playlist to import " & theName giving up after 1
	
	-- find or create the playlist in iTunes
	tell application "iTunes"
		try
			set new_playlist to (some playlist whose name is theName)
		on error errmesg number errn
			--display dialog errmesg & return & return & "error number: " & ¬
			(errn as text)
			log "Create " & theName
			set new_playlist to (make new user playlist with properties {name:theName})
		end try
		
	end tell
	
	-- read the file contents
	set thecontents to my readFile(POSIX path of theFile)
	set thelines to every paragraph of thecontents
	
	set thePathCount to my checkLInes(thelines)
	
	-- loop through the lines
	tell application "iTunes"
		set i to 1
		
		-- Get the list of tracks
		set theTracks to (get a reference to every track of new_playlist)
		set k to count of items of theTracks
		--display dialog k
		--display dialog thePathCount
		
		if not k = thePathCount then
			repeat with j from 1 to the count of thelines
				
				set thetrack to (item j of thelines) as string
				if not thetrack = "" then
					
					set thetrack to POSIX path of (playlistFolder) & thetrack
					
					repeat while (i ≤ k)
						-- Find the path on this track
						set theLocation to (location of (item i of theTracks)) as text
						set theLocation to POSIX path of theLocation
						--log i & k
						--log thetrack & " " & theLocation
						
						-- compare the new and old location
						if not theLocation = thetrack then
							-- remove the offending track
							log "delete " & i & theLocation
							delete item i of theTracks
							set k to k - 1
						else
							exit repeat
						end if
					end repeat
					
					if not (i ≤ k) then
						try
							set thetrack to POSIX file thetrack as string
							
							log "Add " & thetrack
							--display dialog "Add " & thetrack
							add thetrack to new_playlist
							set addCount to addCount + 1
						end try
					end if
					set i to i + 1
				end if
			end repeat
		end if
	end tell
end repeat

display dialog "Complete. Added=" & addCount


on checkLInes(thelines)
	
	set k to 0
	repeat with j from 1 to the count of thelines
		set thetrack to (item j of thelines) as string
		if not thetrack = "" then
			--set j to j - 1
			set k to k + 1
		end if
		
	end repeat
	--set k to count of thelines
	
	return k
	
end checkLInes

on extOf(theFile)
	set theSuffix to text ((offset of "." in theFile) + 1) thru -1 of theFile
	return theSuffix
end extOf

on nameOf(thePath)
	set n to (offset of "/" in (reverse of characters of thePath) as string) - 1
	set theFile to text ((length of (thePath)) - n + 1) thru -1 of thePath
	set theName to text 1 thru ((offset of "." in theFile) - 1) of theFile
	return theName
end nameOf

on getPlaylistNames(playlistFolder)
	tell application "Finder"
		activate
		set playlistFiles to name of every file of folder playlistFolder
	end tell
	
	set root to playlistFolder as string
	
	set thePlaylistAliasList to {}
	set playlistcount to count of playlistFiles
	log playlistcount
	repeat with i from 1 to the playlistcount
		
		-- the filename
		set theFile to item i of playlistFiles
		--if type of theFile is file then
		
		set theSuffix to my extOf(POSIX path of theFile)
		--display dialog "Suffix " & theSuffix
		
		if theSuffix = "m3u" then
			
			set thePlaylist to {root & theFile} as alias
			
			copy thePlaylist to the end of thePlaylistAliasList
			
		end if
	end repeat
	return thePlaylistAliasList
end getPlaylistNames
Windows 7,8 / Ubuntu 13.10 / Mavericks 10.9 / iOS 7.1 / iTunes 11.1
iTunes plugin (d_itunes & itunes4) http://www.mediamonkey.com/forum/viewto ... =2&t=45713
Running MM under Mac OS X with Wine http://www.mediamonkey.com/forum/viewto ... =4&t=58507
Zoethelighter
Posts: 2
Joined: Tue Jul 26, 2011 12:20 pm

Re: Running MM under Mac OS X with Wine

Post by Zoethelighter »

markstuartwalker wrote:Play on Mac can run MM on a Mac ...

It was very easy. From recent recollection...

Downloaded PlayOnMac from http://www.playonmac.com/en/download.html 1.3.21 and installed

Created a new application for Internet Explorer 6 (this is probably the bit you missed). Note: "Application" is POM's terminology for a Wine Prefix.

Configure a sound driver for the Wine Prefix.

Added to that application the MM3 installation and created a shortcut for the non-skinned exe.

Added to that application an MM4 portable installation and created a shortcut for the non-skinned exe.

I must point out that I haven't done any thorough testing, indeed the check was pretty superficial.

You can expect an exception to be thrown at startup. This is normal.

I've been trying to figure this out for the better part of the last couple of days but I'm still having issues. If I could be pointed towards the MM4 Portable installation file that would be extremely helpful. I'm not sure what my issue is, but it's starting to grow quite tiresome.

Also, where exactly do I need to install the MAD plugin and/or how?

Sorry for being so inquisitive, but I dearly miss MediaMonkey and itunes just doesn't work the way I want my music program to work.

Thanks for any assistance, I will greatly appreciate it.
markstuartwalker
Posts: 931
Joined: Fri Jul 10, 2009 8:10 am

Re: Running MM under Mac OS X with Wine

Post by markstuartwalker »

The MM portable installation refers to a normal MM4 installation but check the "Portable" option that is presented.

The MAD plugin can be found here http://www.mediamonkey.com/addons/brows ... -plug-ins/

I suggest that you stop using POM as I found it rather unstable. I find Wineskin much better.
Last edited by markstuartwalker on Wed Jul 27, 2011 8:47 am, edited 2 times in total.
Windows 7,8 / Ubuntu 13.10 / Mavericks 10.9 / iOS 7.1 / iTunes 11.1
iTunes plugin (d_itunes & itunes4) http://www.mediamonkey.com/forum/viewto ... =2&t=45713
Running MM under Mac OS X with Wine http://www.mediamonkey.com/forum/viewto ... =4&t=58507
markstuartwalker
Posts: 931
Joined: Fri Jul 10, 2009 8:10 am

Re: Running MM under Mac OS X with Wine

Post by markstuartwalker »

Is anyone else having trouble with getting MMIP files to load under wine? The unfortunate fact is that MM installs addons via an MMIP file type. This doesn't work well under wine becasue the file path supplied to the executable is in a Unix format.

The answer is to use a utility called winepath. This can convert from a Unix path into an equivalent Windows path suitable for a wine installation. All you need do is create an intermeadiate bash script file to launch your MM. As I launch my MM with some non-default command line options I have one of these already so I just appended a bit on the end of the command.

Code: Select all

wine ~/.wine/dosdevices/c\:/Program\ Files/MediaMonkey/MediaMonkey\ \(non-skinned\).exe \/NoSplash \/INIFILE=J:\\mmdb\\MediaMonkey.ini $(winepath -w $1)
The "$(winepath -w $1)" bit converts the supplied Unix file path and converts it to the Windows format.

By dragging an MMIP file onto the bash script icon MM gets launched with the appropriate file.
Windows 7,8 / Ubuntu 13.10 / Mavericks 10.9 / iOS 7.1 / iTunes 11.1
iTunes plugin (d_itunes & itunes4) http://www.mediamonkey.com/forum/viewto ... =2&t=45713
Running MM under Mac OS X with Wine http://www.mediamonkey.com/forum/viewto ... =4&t=58507
Zoethelighter
Posts: 2
Joined: Tue Jul 26, 2011 12:20 pm

Re: Running MM under Mac OS X with Wine

Post by Zoethelighter »

markstuartwalker wrote:The MM portable installation refers to a normal MM4 installation but check the "Portable" option that is presented.

The MAD plugin can be found here http://www.mediamonkey.com/addons/brows ... -plug-ins/

I suggest that you stop using POM as I found it rather unstable. I find Wineskin much better.

I've downloaded Wineskin but I'm still not sure where to go from there.

I hate to be a bother but could I get a quick idiots guide? And a link to the MM4 dl?

Sorry for being so much trouble.
Post Reply