Sha256: 3035ff03eb08b5c93f113fc7aa3773615fd98334037e5fdb283105b7187a505d
Contents?: true
Size: 352 Bytes
Versions: 1
Compression:
Stored size: 352 Bytes
Contents
module Imessage class Sender def self.send(options = {message:'', contacts: []}) options[:contacts].each do |contact| apple_script_file = File.join(File.dirname(File.expand_path(__FILE__)), 'scripts/send_imessage.applescript') `osascript #{apple_script_file} '#{contact}' '#{options[:message]}'` end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
imessage-0.0.2 | lib/imessage/sender.rb |