Module: Castanaut::Plugin::SnapzPro
- Defined in:
- lib/plugins/snapz_pro.rb
Overview
This module provides primitive support for Snapz Pro, a screencast capturing tool for Mac OS X from Abrosia Software.
Unfortunately Snapz Pro has virtually no AppleScript support so for this plugin to work correctly you must do the following.
-
Invoke Snapz Pro.
-
Position the initial window so that it is flush with the left side of the screen & the top of the window is flush with the bottom of the menu-bar. The window’s close button will be below & slightly to the left of the Apple menu.
-
Click the “Movie…” button & set everything up just the way you want it.
-
Close all Snapz Pro windows & run your castanaut script as usual :-)
Once your script has finished you’ll have to tell Snapz how & where to save the captured movie manually.
More info: www.ambrosiasw.com/utilities/snapzprox
Instance Method Summary collapse
-
#snapz_start_recording(options = {}) ⇒ Object
Tell Snapz to start recording.
-
#snapz_stop_recording ⇒ Object
Tell Snapz to stop recording (by invoking it again).
Instance Method Details
#snapz_start_recording(options = {}) ⇒ Object
Tell Snapz to start recording. Will automatically stop recording when the movie is ended, unless you set :auto_stop => false in options.
24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/plugins/snapz_pro.rb', line 24 def snapz_start_recording( = {}) snapz_invoke # Click the "Movie..." button move to(332, 130) click # Start recording hit Castanaut::Enter unless [:auto_stop] == false at_end_of_movie { snapz_stop_recording } end end |
#snapz_stop_recording ⇒ Object
Tell Snapz to stop recording (by invoking it again).
40 41 42 |
# File 'lib/plugins/snapz_pro.rb', line 40 def snapz_stop_recording snapz_invoke end |