SecuritySpy and MMS

Posted on
Thu Sep 24, 2009 2:32 pm
Matt offline
Posts: 406
Joined: Aug 13, 2006
Location: Northern Idaho

SecuritySpy and MMS

Does anyone have a running script to send MMS messages of captured SecuritySpy pics to cell phones?

Posted on
Wed Oct 07, 2009 7:26 am
Matt offline
Posts: 406
Joined: Aug 13, 2006
Location: Northern Idaho

(No subject)

I got this working by the way.

I made an automator action that adds an attachment to an email. Essentially the automator action finds a single picture in a designated folder then attaches it to an email. The automator action is called from an applescript and after it is run the applescript sends the email to my phone.

Here's the script I am running:


Code: Select all

try
   tell application "SecuritySpy"
      --active mode camera number 0
      capture image camera number 0 as "/Users/username/Documents/Master Bedroom/image.jpg" with overwrite
   end tell
   
   
   tell application "make MMS" --launch automator action
      launch
   end tell
   delay 2
   
   activate application "Mail" --send email
   tell application "System Events"a
      tell process "Mail"
         -- GUI Scripting statements:
         click button "Send" of group 1 of group 1 of tool bar 1 of window "MMS"
         
      end tell
   end tell
end try


If anyone wants more information on getting this running, let me know.

Posted on
Fri Nov 13, 2009 6:56 pm
BlkSwrd offline
Posts: 14
Joined: Apr 04, 2007
Location: California

A question or two about the script...

Matt,

This looks to be a great script... but being new to scripting, help he out with something. In the following part of the script:

tell application "make MMS" --launch automator action
launch
end tell
delay 2

do you have a separate app called Make MMS that the script is calling up? If not, what exactly is being done? Is there an automator action that is called 'make MMS'?

Also, sorry for the newby question, but what is this part:

tell application "System Events"a
tell process "Mail"
-- GUI Scripting statements:
click button "Send" of group 1 of group 1 of tool bar 1 of window "MMS"


Is this a system function for the Finder/GUI?

Thanks for being understanding and ..... ahem, patient with me.

Marcus

Yours,

Marcus

"Not everything that counts is counted, and not everything that's counted counts."

---Alber Einstien

Posted on
Sun Nov 15, 2009 10:13 am
yergeyj offline
Posts: 260
Joined: Dec 29, 2004

(No subject)

Matt,

If you are going to use an Automator script ("Make MMS"), why not have it do everything you want? For example, I like to send an e-mail with attachment, similar to yours, and did as follows:

In advance of using:
1 - Create an Automator application XXXXX using the following actions:
Get Specified Finder Items - gets the attachment file
New Mail Message - Previous action creates attachment to new e-mail
Send Outgoing Messages - Sends message with attachment

When ready to Use:
2 - Create the attachment - mine is done by my phone application; I think Security Spy can do that to a specific file location as well.

3 - Trigger Indigo to send e-mail with attachment - I use an Action Item that just has an embedded AppleScript to "Run Application XXXXX"

I think would be easier, although your method should work as well.

Jim

Posted on
Tue Nov 17, 2009 7:51 pm
Matt offline
Posts: 406
Joined: Aug 13, 2006
Location: Northern Idaho

(No subject)

The Make MMS reference is an automator action that I saved as an app.

The:
Code: Select all
tell application "System Events"a
tell process "Mail"
-- GUI Scripting statements:
click button "Send" of group 1 of group 1 of tool bar 1 of window "MMS"


scipt, clicks the send button in mail to send the MMS. I couldn't figure out how to send the email via automator so I reverted to Applescript. Looking at it now I guess there is a send outgoing messages action within Automator.

Posted on
Tue Nov 17, 2009 11:25 pm
BlkSwrd offline
Posts: 14
Joined: Apr 04, 2007
Location: California

How about one script for the newby...

Matt and Jim,

So, if I can be so bold, what would be one script I can run from Indigo that would attach the picture from SecuritySpy (which I also have, thank you) and send it to my cell phone (like my Yahoo or Gmail account)? Do you need a mix of script and Automator Apps? Thanks.

Yours,

Marcus

"Not everything that counts is counted, and not everything that's counted counts."

---Alber Einstien

Posted on
Tue Nov 24, 2009 7:44 am
Matt offline
Posts: 406
Joined: Aug 13, 2006
Location: Northern Idaho

(No subject)

I haven't had time to look at an all Automator action to accomplish this. I'll see if I can come up with something this weekend.

Posted on
Thu Nov 26, 2009 10:22 am
yergeyj offline
Posts: 260
Joined: Dec 29, 2004

(No subject)

Marcus,

Here's the simple Applescript I use to run the Automator application:

Code: Select all
-- Run Automator Application to send Phlink Call Log to Jim at Work

run application "Send Call Log to Jim at Work"


Here are the Automator steps:
• Get Specified Finder Items (add whatever files you want attached to the e-mail)
• New Mail Message (the previous step flows into this to make the attachment)
• Send Outgoing Messages

Hope this helps,
Jim

Posted on
Thu Nov 26, 2009 1:44 pm
Matt offline
Posts: 406
Joined: Aug 13, 2006
Location: Northern Idaho

(No subject)

I am using SecSpy 2, but it looks like this is doable in 1.5 as well.

Go to Camera Setup and select Actions, Turn on the Email option and fill in the email account info then send your MMS to whatever the appropriate email address for your carrier would be.

An ATT MMS address looks like this: 1234567890@mms.att.net

Posted on
Tue Jun 10, 2014 7:06 pm
randrade1000 offline
Posts: 1
Joined: Jun 10, 2014

Re: SecuritySpy and MMS

Hi there

I'm trying to create a script that tells SecuritySpy to turn all cameras to active mode.
But I have no programming skills whatsover.

I've created an IFTTT action, alongside Hazel, to tell SecuritySpy cameras to become active AFTER I leave my house, and then passive when I arrive.

Any idea on how to just the create the automator script?
Hopefully you guys can help me out.

Thanks

Posted on
Tue Jun 10, 2014 8:05 pm
matt (support) offline
Site Admin
User avatar
Posts: 21416
Joined: Jan 27, 2003
Location: Texas

Re: SecuritySpy and MMS

Take a look at the Indigo Cynical SecuritySpy plugin. Once you create devices in Indigo for your SecuritySpy cameras with it, there is an action available to Make Active or Make Passive each device (camera).

Image

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 4 guests