Sha256: d7ab5eebffbf32bdd3d148336bbb3b6f528bcddfe408bc76623aad1975549644

Contents?: true

Size: 414 Bytes

Versions: 1

Compression:

Stored size: 414 Bytes

Contents

module Skype
  def self.exec(command)
    script = %Q{tell application "Skype"
  send command "#{Utils.escape command}" script name "#{self.config[:app_name]}"
end tell}
    filter_response `unset LD_LIBRARY_PATH; unset DYLD_LIBRARY_PATH; /usr/bin/osascript -e '#{script}'`.strip
  end

  module Utils
    def self.escape(str)
      str.gsub(/(["\\])/){ "\\#{$1}" }.
        gsub("'"){ "'\\''" }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
skype-0.1.5 lib/skype/platforms/mac.rb