Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old May 28, 2006, 12:39 AM   #1
Jeffrey903
macrumors member
 
Join Date: May 2006
Send E-Mail in Automator (Hidden)

Hello,

I just received my new macbook pro, and am trying to create an automator workflow that will take 3 pictures, create a zip of them, and e-mail them to myself all without the user knowing. Basically, if I were to lose my laptop, the finder would login to the guest account and this workflow would automatically execute. I have successfully been able to perform the first 2 steps, but can not figure out a way to send the e-mail to myself without the finder knowing.

I do not care how this works (automator action, terminal script, python, perl, etc), but it just needs to be transparent.

I have been searching all over the internet and can not find a way to do this.

If anyone knows how, I would be very appreciative.

Thanks in advance!
Jeffrey903 is offline   0 Reply With Quote
Old May 29, 2006, 07:36 PM   #2
superbovine
macrumors 68030
 
superbovine's Avatar
 
Join Date: Nov 2003
it would be impossible to write a script to login to a guest account unless you are login into the shell while someone is logged into the machine with access.

the script would have to execute through permission on the account that the person logins into.

You could probably write a shell scripts or applescript that invokes a shell command or script that uses the mail unix command to send the e-mail to yourself. you'd have to invoke the script by putting in the startup items for the account or find some other method to invoke the script. doing it this way avoids the whole finder issue, although it is still possible for someone to figure what is going on.

Why would you need to e-mail yourself pictures if your laptop is lost? Just make a backup. This is probably for more harm than good.

Last edited by superbovine; May 29, 2006 at 07:41 PM.
superbovine is offline   0 Reply With Quote
Old May 29, 2006, 07:54 PM   #3
TurboLag
macrumors member
 
Join Date: Feb 2004
I think you misunderstood the purpose. He would like to take a picture of who is using the stolen laptop, and have it emailed to himself.

Sorry I cant provide a solution.
TurboLag is offline   0 Reply With Quote
Old May 29, 2006, 07:54 PM   #4
HiRez
macrumors 601
 
HiRez's Avatar
 
Join Date: Jan 2004
Location: Western US
Quote:
Originally Posted by superbovine
Why would you need to e-mail yourself pictures if your laptop is lost? Just make a backup. This is probably for more harm than good.
I assume to positively ID the thief, and possibly be able to get some clues to their location? It's not a bad idea, although they would need to be signed onto an internet connection somewhere. You'd think anyone who steals a laptop would wipe the hard drive right away (or simply replace it), but then there's a lot of dumb thieves out there.
__________________
Go outside, the graphics are amazing!
HiRez is online now   0 Reply With Quote
Old May 29, 2006, 07:57 PM   #5
superbovine
macrumors 68030
 
superbovine's Avatar
 
Join Date: Nov 2003
Quote:
Originally Posted by HiRez
I assume to positively ID the thief, and possibly be able to get some clues to their location? It's not a bad idea, although they would need to be signed onto an internet connection somewhere. You'd think anyone who steals a laptop would wipe the hard drive right away (or simply replace it), but then there's a lot of dumb thieves out there.
using commercial software would better in that situation.
superbovine is offline   0 Reply With Quote
Old May 29, 2006, 09:42 PM   #6
supremedesigner
macrumors 6502a
 
supremedesigner's Avatar
 
Join Date: Dec 2005
Um, do you mean by this: http://orbicule.com/products/

I think that will help you instead of doing something crazy!
supremedesigner is offline   0 Reply With Quote
Old Oct 23, 2007, 10:50 AM   #7
thrustinj
macrumors newbie
 
Join Date: Mar 2007
This is available now with iAlertU 0.25b.

Though I haven't gotten the emails to work. I'm going to rewrite the script.

This is the script it uses now. Is there something wrong with it?

on send_email(email_to, email_from)
-- set email_from to "randygreen@comcast.net" --
set image_name to "iAlertU_Capture.jpg"

set image_path to ((path to home folder) as string) & image_name

set image_file to image_path as alias

tell application "Mail"
activate
set new_message to make new outgoing message with properties {subject:"iAlertU"}
tell new_message
-- set visible to true --
set sender to email_from
make new to recipient at end of to recipients with properties {address:email_to}
make new attachment with properties {file name:image_file} at after the last paragraph
-- activate --
end tell
send new_message
end tell

tell application "Finder"
-- delete image_path --
end tell
end send_email
thrustinj is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Automator Save Mail Attachment jtrickett Mac Programming 3 Jun 27, 2014 06:44 PM
Can't send mail hihocarp Mac Basics and Help 1 May 7, 2014 02:34 PM
MAIL - REPLY, Mail uses different email to send Milateket Mac Applications and Mac App Store 3 Dec 30, 2012 01:07 PM
Creating an Automator Script to Send Email Jetheat OS X 3 Oct 29, 2012 01:47 PM
mail in snow leopard - hidden address database? toronado455 Mac Applications and Mac App Store 2 Jun 8, 2012 04:58 PM

Forum Jump

All times are GMT -5. The time now is 01:22 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps