November 19, 2016

Running multiple Skype instances on macOS

Just create a text file called skype.sh with this the code:

#!/bin/bash
INSTANCE=$1

if [[ "$INSTANCE" -eq "" ]]; then  
    INSTANCE="2"
fi

rm -rf "/Applications/Skype$INSTANCE.app" "~/Library/Application Support/Skype$INSTANCE"

cp -r "/Applications/Skype.app" "/Applications/Skype$INSTANCE.app"

# initialize data
/Applications/Skype$INSTANCE.app/Contents/MacOS/Skype

sed -i "" "s/com.skype.skype/com.skype$INSTANCE.skype/g" "/Applications/Skype$INSTANCE.app/Contents/Info.plist"

# run instance
/Applications/Skype$INSTANCE.app/Contents/MacOS/Skype

# don't need this line anymore
# defaults write "com.skype$INSTANCE.skype" DataPath "~/Library/Application Support/Skype$INSTANCE"

then

chmod a+x skype.sh

then run ./skype.sh 2 now you have Skype2 app in /Application/

If you need more, just repeat above code as ./skype.sh 3 ./skype.sh 4