Skip to content

Instantly share code, notes, and snippets.

@tmiz
Created February 19, 2011 03:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmiz/834791 to your computer and use it in GitHub Desktop.
Save tmiz/834791 to your computer and use it in GitHub Desktop.
Sample Apple Script for SimplyRec + ChromeLauncherWithExtraAudio with Google Chrome
-- Sample Apple Script for SimplyRec + ChromeLauncherWithExtraAudio with Google Chrome
-- SimplyRec http://tg.tmiz.net/softwares/sr/index-e.html
-- ChromeLauncherWithExtraAudio http://tg.tmiz.net/softwares/clwea/
-- Google Chrome for Mac http://www.google.co.jp/chrome/
-- SoundFlower http://code.google.com/p/soundflower/
-- This scirpt can be executed by iCal and Automator, Apple Script Editor
-- Please select input device "SoundFlower" on SimplyRec before executing.
tell application "ChromeLauncherWithExtraAudio"
activate
-- terminate chrome
terminate chrome
-- set timing
delay 1.0
--select device (1 is SoundFlower(2ch) on my environment)
set CurrentOutputDeviceIndex to 1
-- set URL
set StartURL to "http://www.youtube.com/watch?v=OlVbEclPj4c"
-- execute chrome
execute chrome
end tell
tell application "SimplyRec"
activate
-- start recording
set Recording Status to yes
-- start path thru
set Playthru Status to yes
-- set recording time
delay 60.0 * 2
-- stop recording
set Recording Status to false
-- quit
quit
end tell
tell application "ChromeLauncherWithExtraAudio"
activate
-- terminate chrome
terminate chrome
quit
end tell
display dialog "Finish Recording"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment