Running MM under Mac OS X with Wineskin

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

Moderator: Gurus

mbjb

Re: Running MM under Mac OS X with Wine

Post by mbjb »

Alright, i got it to finally work for me, taking doh123's advice, i used the 1.3.24 engine with MM 4.0.0.1426, and installed the mad plugin mmip with the new extension installer. It works perfectly. Prior to this, I did the exact same thing with 1.3.26, but the songs would still skip around while playing.
Thank you markstuartwalker and doh123, for you advice, and for wineskin. No more switching to bootcamp just for mediamonkey!
markstuartwalker
Posts: 931
Joined: Fri Jul 10, 2009 8:10 am

Re: Running MM under Mac OS X with Wine

Post by markstuartwalker »

doh123 wrote:I'd suggest sticking at Wine 1.3.24 or below right now. Above is almost totally using mmdevapi which is very problematic still with the Wine CoreAudio driver for Mac OS X.
That's interesting. I must admit that in recent times I've been using the Mac to simply edit files remotely via VNC with no sound so I didn't know about the sound stuttering. Yes, 1.3.27 stutters and 1.3.24 doesn't.
doh123 wrote:Wineskin wrappers are also made to share... not everyone has to reproduce everything if one person sets up a zipped version to share so others can just download and run it.
Yes, that's true. I wonder if Ventis would like to add a wrapper of the free version of MM to their download web page? Someone would need to understand the legality of re-packaging the IE6 and MAD components though.

EDIT: http://wineskin.doh123.com/tiki-index.p ... g+wrappers
Last edited by markstuartwalker on Mon Sep 05, 2011 4:36 am, edited 1 time 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
emyrold
Posts: 10
Joined: Wed Jul 06, 2005 6:58 pm

Re: Running MM under Mac OS X with Wine

Post by emyrold »

mbjb wrote:Alright, i got it to finally work for me, taking doh123's advice, i used the 1.3.24 engine with MM 4.0.0.1426, and installed the mad plugin mmip with the new extension installer. It works perfectly. Prior to this, I did the exact same thing with 1.3.26, but the songs would still skip around while playing.
Thank you markstuartwalker and doh123, for you advice, and for wineskin. No more switching to bootcamp just for mediamonkey!
Since you got it to work, was wondering if you could update the most recent steps and add what you found, so some of the rest of us can get it working also... nothing like a tried and true 1, 2, 3, 4....

1. How to download wine installer with the 1.3.24 engine
2. How to install 4.0.0.1426 into wine on the mac
3. where is the MAD plugin mmip with new extension installer....

etc...

Thanks a bunch, guys...!

-Erik
mbjb

Re: Running MM under Mac OS X with Wine

Post by mbjb »

markstuartwalker wrote:
* Obtain WineSkin's Winery from http://wineskin.doh123.com/tiki-index.p ... =Downloads and Install (The Winery is the central location from which all the bits of program are downloaded and updated)
* Run Winery and update the Wineskin Wrapper (this will download). This can create your new MM4.app folder with the embedded Wine bits.
* Add a new Wine Engine (this will download). This is a precompiled Wine build for Mac.
* Click "Create New Blank Wrapper" and name it MM4. This can take quite some time. Download the Gecko installation when prompted.
* Note that your new MM4.app will be at /Users/dad/Applications/Wineskin/MM4. Click "Open folder in Finder"
* Doubleclick click the MM4 app to open Wineskin and Click "Advanced"
* Click "Tools" and then "Winetricks"
* Choose "IE6" off the drop-down list and click "Run". This will download (slowly) and install.
* Double click the MM4 app and Click "Install windows software"
* Navigate to your MM4 installation exe file.
* Follow the normal MM installation. Habitually I don't run in skinned mode, I find that it runs faster. Deselect "Run MediaMonkey now" at the end.
* Choose the "MediaMonkey (non skinned).exe" off the provided list
* Quit
* Double click the MM4 app folder to launch MM4. This can take quite a while to run the first time.
Ok, to get MediaMonkey 4 working on mac, follow these steps above as outlined by markstuartwalker, EXCEPT, use the 1.3.24 engine or lower, as doh123 has said, and use MM beta 4.0.0.1424 or later. afterwards go here and download the mmip http://www.mediamonkey.com/addons/brows ... ut-plugin/ . Then run Mediamonkey (preferably in non-skinned) and go to Tools>Extensions then Add, select the inmad mmip file and restart Mediamonkey. It should play songs without stuttering. I am sorry that i really didnt put this into a 1,2,3,4... because all the credit goes to markstuartwalker for all the work he has done to get MM4 working with wineskin, and to doh123 for his advice and for wineskin of course. Hope this helps, I pretty much followed mark's steps and kept up to date with any changes.
mbjb

Re: Running MM under Mac OS X with Wine

Post by mbjb »

Unfortunately, I cannot access music on my external hard drive with MediaMonkey. It wont go to any directory above my mac hard drive. Does anyone know if it is possible?
markstuartwalker
Posts: 931
Joined: Fri Jul 10, 2009 8:10 am

Re: Running MM under Mac OS X with Wine

Post by markstuartwalker »

mbjb wrote:Unfortunately, I cannot access music on my external hard drive with MediaMonkey. It wont go to any directory above my mac hard drive. Does anyone know if it is possible?
You need to map a drive letter in Wineskin (winecfg) to where your NAS is mounted on your Mac.

I have an smb share at /Volumes/nas which is mapped to Q: under wine. Run Wineskin, select Tools http://wineskin.doh123.com/tiki-index.p ... ed+-+Tools . Use the Drives tab. This also lets you set the drive ID which MM uses to recognise the drive's device.
Last edited by markstuartwalker on Mon Sep 05, 2011 4:32 am, edited 1 time 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 »

I can also confirm that this recipe works with MM3 as well.

Wineskin 2.4
Wine 1.3.24
ie6
MAD plugin 0.15
MM3 or 4 in non-skinned mode

Map a drive letter to a mounted volume for access to a NAS.

With MM4.0.0.1424 onwards it is possible to add MMIP files via options/extensions/add. Note that the adoption of other plugins is untested. Please post any of your experiences.
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've uploaded a MM addon (still awaiting approval) which is a zip file of a Winewrapper of MM4.0.0.1426. Only 74Mb!
http://www.mediamonkey.com/addon_system ... egory_id=4

Simply unzip this into the Applications folder and double click :-)

EDIT: Directly http://www.mediafire.com/file/fide2m6pn ... 0.1426.zip
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 »

73 downloads .... not bad.

This was my first exported wrapper. Has it worked for anyone?
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 Wineskin

Post by markstuartwalker »

The process used to produce the Wrapper is ...

If not installed already then install the Wineskin Winery from http://sourceforge.net/projects/wineski ... p/download

Use WineskinWinery to produce an empty Wineskin. call this MacMM4.0.0.nnnn

Use Winetricks to install (if these have not been used before on this Mac they will be downloaded)

ie6
corefonts
vcrun6
vb6run

Use Wineskin to run the MediaMonkey installation

Deselect skinned mode
Do NOT launch MediaMonkey at the end of installation
Choose the MediaMonkey (non-skinned).exe executable to be the main executable to run

Use Set Screen Options to Decorate Windows to ensure MM looks like a normal Mac App

Double click to run the App. Go through the standard MM initial screens.

Goto Tools/Extensions and Click Add. Browse to the inmad.mmip installation and install.

Exit MM.

Zip the App folder (250Mb->80Mb).

Distribute Wineskin Wrapper.
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 »

If anyone is remotely interested this is the script to import the MMiTunesCache from the plugin sync to iTunes. Still incomplete but it's getting there. if there are any AppleScript skilled folk out there please PM me if you think that you can help.

This will be shipped with the plugin and triggered to sync the MMiTunesCache contents to the native Mac iTunes thus performing the Windows to Mac bridge.

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 from the playlist
							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
						log "Track" & thetrack
						set thetrackPath to POSIX file thetrack as string
						
						log "Add " & thetrackPath
						--display dialog "Add " & thetrackPath
						set itTrack to add thetrackPath to new_playlist
						
						set thetrack to my pathOf(thetrack) & ".xml"
						set thetrackPath to POSIX file thetrack as string
						log "Add xml" & thetrackPath
						
						set theXmlLines to every paragraph of my readFile(POSIX path of thetrackPath)
						
						
						set rating of itTrack to my valueOf(theXmlLines, "rating")
						set played count of itTrack to my valueOf(theXmlLines, "playcounter")
						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 valueOf(theXmlLines, tag)
	
	set tag2 to "<" & tag & ">"
	log "valueOf " & tag2
	repeat with j from 1 to the count of theXmlLines
		
		
		set theItem to (item j of theXmlLines) as string
		set n to offset of tag2 in theItem
		if n = 1 then
			set theValue to text ((length of tag2) + 1) thru ((length of theItem) - (length of tag2) - 1) of theItem
			return theValue
		end if
		
	end repeat
	
	return 4
	
end valueOf

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 pathOf(thePath)
	set n to (offset of "." in (reverse of characters of thePath) as string) + 1
	set theName to text 1 thru ((length of (thePath)) - n + 1) of thePath
	return theName
end pathOf

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
louellajones
Posts: 1
Joined: Tue Sep 13, 2011 5:46 am

Re: Running MM under Mac OS X with Wine

Post by louellajones »

anybody tried with Ubuntu 11.10 - Oneiric Ocelot ????
emyrold
Posts: 10
Joined: Wed Jul 06, 2005 6:58 pm

Re: Running MM under Mac OS X with Wine

Post by emyrold »

@mbjb and @markstuartwalker

Thanks so much for documenting these steps.....!!!
markstuartwalker
Posts: 931
Joined: Fri Jul 10, 2009 8:10 am

Re: Running MM under Mac OS X with Wine

Post by markstuartwalker »

louellajones wrote:anybody tried with Ubuntu 11.10 - Oneiric Ocelot ????
I run MM3 and MM4 under Ubuntu 10.10 with Wine using the same winetricks steps. Obviously you won't get the niceties of the Wineskin Wrapper though.
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
MikeTradr
Posts: 14
Joined: Sat Sep 24, 2011 10:31 am

Re: Running MM under Mac OS X with Wine

Post by MikeTradr »

Hi Mark and all... first time running MM on mac or PC. I got pretty far but then got a "Quicktime is needed to play M4A and other ACC Tracks"

I have MAD and itunes add on installed I believe.

what did I not do?

here is what I have.

WineSkin Winery 1.2
Wineskin 2.4
WS7Wine 1.3.28 Engine
MeidaMonkey 4.0.0.1436

anyone who can help care to im with me please? on some im programs

thx

Mike

ps I also tried to get song name, etc... for a unknown Track 12 but did nto work either. software will do that right?
Post Reply