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