Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Cat skinning' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Cat skinning
Authored by: darndog on Mar 05, '07 12:10:34PM
Alternative capture and mailer script for those that don't want to start and stop Apple Mail for just this one occasion:

showme.scpt (save in ~/Library/Scripts/):
do shell script "isightcapture -h 240 -w 260 ~/Documents/shots/snappit.jpg ; uuencode ~/Documents/shots/snappit.jpg snappit.jpg | mail -s CamPic myblackberry@whatever.com ; mv ~/Documents/shots/snappit.jpg ~/Documents/shots/`date +%y%m%d%H%M%S`.jpg"

Alternative trigger for Apple Mail users who would rather wait 5mins than enable ssh to the world:

new mail rule:
If (any) of the following conditions are met:
(subject) (is equal to) [ShowMeThePic]

Perform the following actions:
(Run AppleScript) [~/Library/Scripts/showme.scpt]

To activate, send your desktop an email with the subject "ShowMeThePic" (you may want to change that to something else) you'll also need to edit 'myblackberry@whatever.com' to the correct address. If your phone mail client can't handle uuencoded images you can use 'mutt' or similar to mime encode and send the pic.

Just thought I'd throw these out there, would make more sense to intergrate the Authors Automator script into the Apple Mail trigger if you're a Apple Mail user, I think quite a few mail clients have 'run applescript' as a rule action as well. Alternatively Triggers are pretty easy to set up through scriptable irc clients or the built in webserver, personally I've never been comfortable with enabling ssh to the internet, if you do decide to do that ensure you have a seriously good password for your user account. dD

[ Reply to This | # ]