This is an updated version of my previous macro with a few important changes.
It is now designed to be used before launching Skype (which seems more useful) and will launch Skype when it finishes.
It can be launched either via the Keyboard Maestro menu bar item
or a keyboard shortcut: ⌃⌥ ⇧ ⌘ S which you can modify if you want.
It has better error messages more appropriate for use with Keyboard Maestro
Note: Disabled By Default
Keyboard Maestro disables macros by default when you import them, so you'll need to 'edit' it in Keyboard Maestro and enable it.
See the checkbox next to 'Triggered by any of the following'?
Click that and it will look like this:
Any questions, feel free to ask. I'm happy to help.
If you just want the script (which can be used without Keyboard Maestro), you can get the gist of it here.