# Check the availability of the directory you need to run Skype. If not, create if [! -d / Users / $ {username} / Application \ Support / Skype] then mkdir / Users / $ {username} / Application \ Support / Skype fi
# Run Skype su $ {username} -c /Applications/Skype.app/Contents/MacOS/Skype
Do not forget to change the username of the username variable (do not put a space after the '=' sign). Let's call the script skype.sh. Making it executable: