Mar 05, '07 07:30:04AM • Contributed by: Anonymous
The Effect:
You press a few keys on your Blackberry, and you receive an emailed an image of whoever is in front of your laptop. The image is also saved and the filename time stamped. This is a complete hack and there are probably a million ways to do this better, but it works.
What you need:
- iSightCapture
- A custom-made Automator workflow
- A Blackberry with data services (I have a T-Mobile Pearl)
- A free program called midpSSH installed on your Blackberry
First, download iSightCapture and put it in /usr/bin. Then start a new Automator workflow, and make it look like this:
- Automator: Run Shell Script -- (240x260 is my Pearl's screen resolution). The script: isightcapture -h 240 -w 260 /Users/you/Documents/shots/snappit.jpg
- Finder: Get Specified Finder Items [ignore results from previous action] -- add /Users/you/Documents/shots/snappit.jpg
- Mail: New Mail Message -- enter your Blackberry's email address in the To: field, give it a subject and a message if you so desire, and select your account (note you must have already set up some email address using the program Mail)
- Mail: Send Outgoing Messages
- Automator: Run AppleScript [ignore results from previous action] -- This script hides Mail:
tell application "System Events" tell application "Mail" to activate tell process "Mail" keystroke "h" using command down end tell end tell - Automator: Run Shell Script [ignore results from previous action]:
cp /Users/you/Documents/shots/snappit.jpg /Users/YOURUSERNAME/Documents/shots/snappit`date +%y%m%d%H%M%S`.jpg
I also then put in an Automator pause for 20 seconds, and then the shell script killall Mail, because i dont use Mail for anything but this. The last thing to note is that midpSSH supports some macros, making it fairly easy to execute this command. (Please note this is my first-ever Mac, and I'm sure the script could be improved.)
