Skip to content

Instantly share code, notes, and snippets.

@brunogama
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brunogama/cb4b9aabfd406d7ce6e6 to your computer and use it in GitHub Desktop.
Save brunogama/cb4b9aabfd406d7ce6e6 to your computer and use it in GitHub Desktop.
Multiple Skype Instances
#! /usr/bin/env bash
NEXT_SKYPE_PROCESS=$(echo $(( $(ps aux | grep skype | grep -v "grep" | wc -l | tr -d '[[:space:]]') + 1)))
open -na $(mdfind 'kMDItemFSName == "Skype.app"'cd) --args -DataPath /Users/$(whoami)/Library/Application\ Support/Skype${NEXT_SKYPE_PROCESS}
unset NEXT_SKYPE_PROCESS
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment