Skip to main content
replaced http://superuser.com/ with https://superuser.com/
Source Link

according to the writer : This seems to work with iTunes 8 and 9, although you'll need to redo the patch after upgrading.

Open a Terminal and type the following

cd /Applications/iTunes.app/Contents/MacOS
sudo mv iTunes iTunesX
sudo curl http://www.cs.umd.edu/~dmonner/iTunes -O
sudo chmod uog+x iTunes enter code here

From http://www.cs.umd.edu/~dmonner/iTunes

#!/usr/bin/env python

import sys, os, subprocess

launch = True
blocker = ""

apps = ["Spotify", "Songbird"]

ps = subprocess.Popen("/bin/ps -x", shell=True, stdout=subprocess.PIPE)

for line in ps.stdout.read().split("\n"):
    for app in apps:
        if app in line:
            launch = False
            blocker = app

ps.stdout.close()

if launch :
    os.spawnvp(os.P_WAIT, '/Applications/iTunes.app/Contents/MacOS/iTunesX', sys.argv)
else :
    print "Not launching iTunes while %s is running." % blocker

and you can read more here and herehere.

according to the writer : This seems to work with iTunes 8 and 9, although you'll need to redo the patch after upgrading.

Open a Terminal and type the following

cd /Applications/iTunes.app/Contents/MacOS
sudo mv iTunes iTunesX
sudo curl http://www.cs.umd.edu/~dmonner/iTunes -O
sudo chmod uog+x iTunes enter code here

From http://www.cs.umd.edu/~dmonner/iTunes

#!/usr/bin/env python

import sys, os, subprocess

launch = True
blocker = ""

apps = ["Spotify", "Songbird"]

ps = subprocess.Popen("/bin/ps -x", shell=True, stdout=subprocess.PIPE)

for line in ps.stdout.read().split("\n"):
    for app in apps:
        if app in line:
            launch = False
            blocker = app

ps.stdout.close()

if launch :
    os.spawnvp(os.P_WAIT, '/Applications/iTunes.app/Contents/MacOS/iTunesX', sys.argv)
else :
    print "Not launching iTunes while %s is running." % blocker

and you can read more here and here.

according to the writer : This seems to work with iTunes 8 and 9, although you'll need to redo the patch after upgrading.

Open a Terminal and type the following

cd /Applications/iTunes.app/Contents/MacOS
sudo mv iTunes iTunesX
sudo curl http://www.cs.umd.edu/~dmonner/iTunes -O
sudo chmod uog+x iTunes enter code here

From http://www.cs.umd.edu/~dmonner/iTunes

#!/usr/bin/env python

import sys, os, subprocess

launch = True
blocker = ""

apps = ["Spotify", "Songbird"]

ps = subprocess.Popen("/bin/ps -x", shell=True, stdout=subprocess.PIPE)

for line in ps.stdout.read().split("\n"):
    for app in apps:
        if app in line:
            launch = False
            blocker = app

ps.stdout.close()

if launch :
    os.spawnvp(os.P_WAIT, '/Applications/iTunes.app/Contents/MacOS/iTunesX', sys.argv)
else :
    print "Not launching iTunes while %s is running." % blocker

and you can read more here and here.

added 1 characters in body
Source Link
Am1rr3zA
  • 13.3k
  • 14
  • 69
  • 88

according to the writer : This seems to work with iTunes 8 and 9, although you'll need to redo the patch after upgrading.

Open a Terminal and type the following

cd /Applications/iTunes.app/Contents/MacOS
sudo mv iTunes iTunesX
sudo curl http://www.cs.umd.edu/~dmonner/iTunes -O
sudo chmod uog+x iTunes enter code here

From http://www.cs.umd.edu/~dmonner/iTunes

#!/usr/bin/env python

import sys, os, subprocess

launch = True
blocker = ""

apps = ["Spotify", "Songbird"]

ps = subprocess.Popen("/bin/ps -x", shell=True, stdout=subprocess.PIPE)

for line in ps.stdout.read().split("\n"):
    for app in apps:
        if app in line:
            launch = False
            blocker = app

ps.stdout.close()

if launch :
    os.spawnvp(os.P_WAIT, '/Applications/iTunes.app/Contents/MacOS/iTunesX', sys.argv)
else :
    print "Not launching iTunes while %s is running." % blocker

and you can read more here and here.

according to the writer : This seems to work with iTunes 8 and 9, although you'll need to redo the patch after upgrading.

Open a Terminal and type the following

cd /Applications/iTunes.app/Contents/MacOS
sudo mv iTunes iTunesX
sudo curl http://www.cs.umd.edu/~dmonner/iTunes -O
sudo chmod uog+x iTunes enter code here

From http://www.cs.umd.edu/~dmonner/iTunes

#!/usr/bin/env python

import sys, os, subprocess

launch = True
blocker = ""

apps = ["Spotify", "Songbird"]

ps = subprocess.Popen("/bin/ps -x", shell=True, stdout=subprocess.PIPE)

for line in ps.stdout.read().split("\n"):
    for app in apps:
        if app in line:
            launch = False
            blocker = app

ps.stdout.close()

if launch :
    os.spawnvp(os.P_WAIT, '/Applications/iTunes.app/Contents/MacOS/iTunesX', sys.argv)
else :
    print "Not launching iTunes while %s is running." % blocker

and you can read more here and here.

according to the writer : This seems to work with iTunes 8 and 9, although you'll need to redo the patch after upgrading.

Open a Terminal and type the following

cd /Applications/iTunes.app/Contents/MacOS
sudo mv iTunes iTunesX
sudo curl http://www.cs.umd.edu/~dmonner/iTunes -O
sudo chmod uog+x iTunes enter code here

From http://www.cs.umd.edu/~dmonner/iTunes

#!/usr/bin/env python

import sys, os, subprocess

launch = True
blocker = ""

apps = ["Spotify", "Songbird"]

ps = subprocess.Popen("/bin/ps -x", shell=True, stdout=subprocess.PIPE)

for line in ps.stdout.read().split("\n"):
    for app in apps:
        if app in line:
            launch = False
            blocker = app

ps.stdout.close()

if launch :
    os.spawnvp(os.P_WAIT, '/Applications/iTunes.app/Contents/MacOS/iTunesX', sys.argv)
else :
    print "Not launching iTunes while %s is running." % blocker

and you can read more here and here.

Source Link
Am1rr3zA
  • 13.3k
  • 14
  • 69
  • 88

according to the writer : This seems to work with iTunes 8 and 9, although you'll need to redo the patch after upgrading.

Open a Terminal and type the following

cd /Applications/iTunes.app/Contents/MacOS
sudo mv iTunes iTunesX
sudo curl http://www.cs.umd.edu/~dmonner/iTunes -O
sudo chmod uog+x iTunes enter code here

From http://www.cs.umd.edu/~dmonner/iTunes

#!/usr/bin/env python

import sys, os, subprocess

launch = True
blocker = ""

apps = ["Spotify", "Songbird"]

ps = subprocess.Popen("/bin/ps -x", shell=True, stdout=subprocess.PIPE)

for line in ps.stdout.read().split("\n"):
    for app in apps:
        if app in line:
            launch = False
            blocker = app

ps.stdout.close()

if launch :
    os.spawnvp(os.P_WAIT, '/Applications/iTunes.app/Contents/MacOS/iTunesX', sys.argv)
else :
    print "Not launching iTunes while %s is running." % blocker

and you can read more here and here.