Create Lock script (for Mac)