This forum is in archive mode. You will not be able to post new content.

Author Topic: Apple script/ automator  (Read 1107 times)

0 Members and 2 Guests are viewing this topic.

Offline Wolf

  • Knight
  • **
  • Posts: 224
  • Cookies: 23
  • Fear makes the wolf larger than he really is.
    • View Profile
Apple script/ automator
« on: January 04, 2012, 03:10:35 PM »
So I had an idea for a project, but am not yet familiar enough with any of the languages I'm learning to follow through with the idea, so I ended up using apple script and automator. ( A little too user friendly :/ )
My idea was to Have my computer start a program upon log in that takes a screenshot every ten mins, then have that emailed to an anon email address. The problem I ran into was I'm not sure how to make this run in the back ground (where an unsuspecting user will not see it).
Any suggestions?

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: Apple script/ automator
« Reply #1 on: January 04, 2012, 05:31:54 PM »
No idea how to do it with whatever you want it to be done in, but it would be kinda easy with Delphi... maybe even Python.

Offline Wolf

  • Knight
  • **
  • Posts: 224
  • Cookies: 23
  • Fear makes the wolf larger than he really is.
    • View Profile
Re: Apple script/ automator
« Reply #2 on: January 04, 2012, 05:39:15 PM »
Still learning python, so far I'm liking it a lot better than some other languages.

Offline ande

  • Owner
  • Titan
  • *
  • Posts: 2664
  • Cookies: 256
    • View Profile
Re: Apple script/ automator
« Reply #3 on: January 04, 2012, 06:30:43 PM »
Perl got a win32 screenshot module.

Code: [Select]
  use Win32::Screenshot;

  $image = CaptureRect( $x, $y, $width, $height );
  $image->Write('screenshot.png');

http://search.cpan.org/~psme/Win32-Screenshot-1.20/Screenshot.pm
if($statement) { unless(!$statement) { // Very sure } }
https://evilzone.org/?hack=true

Offline Wolf

  • Knight
  • **
  • Posts: 224
  • Cookies: 23
  • Fear makes the wolf larger than he really is.
    • View Profile
Re: Apple script/ automator
« Reply #4 on: January 04, 2012, 07:04:15 PM »
Ande,


Thanks, should be able to make this work. Never really gave much thought to perl after I started python.
Always on the move....

 



Want to be here? Contact Ande, Factionwars or Kulverstukas on the forum or at IRC.