Category: daily learning

  • Toggling the mute button in Microsoft Lync for Mac via Applescript

    Through liberal use of the dictionary for Microsoft Lync, the Accessibility Inspector, and a few web links, I’ve come up with this script which toggles the mute button in Lync for Mac. tell application “Microsoft Lync” activate end tell tell application “System Events” tell process “Microsoft Lync” repeat with aWindow in (get every window) set…

  • rspec-rails 3 deprecation warnings scripts and fixes

    Upon upgrading to rspec 2.99.0, I began to receive deprecation warnings for several things that had issues, and to do a few updates: Because the project was using its syntax and stub_model I needed to add that functionality back into rspec in the :test group of my Gemfile: # Support for its syntax gem ‘rspec-its’, ‘~>…

  • mkdir with intermediate directories and rails generate view spec

    I’ve been running into a lot of cases where I need to build intermediate directories for a path. Apparently, the correct option is -p mkdir -p dir/tree/to/make From the mkdir man page: -p Create intermediate directories as required. If this option is not specified, the full path prefix of each operand must already exist. On…