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

0 Members and 1 Guest are viewing this topic.

Online Wolf

  • Short
  • ***
  • Posts: 165
  • Karma: +11/-1
  • Gender: Male
  • Tamed wolves are naught but dogs.
    • 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?
Fear makes the Wolf bigger than he is.

Online Kulverstukas

  • Administrator
  • 0x13338
  • *
  • Posts: 1889
  • Karma: +112/-10
  • Gender: Male
  • Delphi coder (and proud)
    • 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.

Online Wolf

  • Short
  • ***
  • Posts: 165
  • Karma: +11/-1
  • Gender: Male
  • Tamed wolves are naught but dogs.
    • 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.
Fear makes the Wolf bigger than he is.

Online ande

  • Administrator
  • 0x13338
  • *
  • Posts: 1404
  • Karma: +80/-7
  • Gender: Male
    • View Profile
    • Evilzone
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

Online Wolf

  • Short
  • ***
  • Posts: 165
  • Karma: +11/-1
  • Gender: Male
  • Tamed wolves are naught but dogs.
    • 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....
Fear makes the Wolf bigger than he is.

 



Intern0t SoldierX py1337 SecurityOverride programisiai
Want to be here? Contact Ande or Satan911 on the forum or at IRC.