EyeTV Recording done Script – den Mac nach der Aufnahme ausschalten

Apple Script Editor öffnen.

on RecordingDone(RecordinID)
tell application "Finder"
beep
end tell
display dialog "EyeTV Aufnahme beendet. Der Rechner wird nun in den Ruhezustand versetzt!" buttons {"Abbrechen"} cancel button 1 giving up after 30 with title "EyeTV"

tell application "Finder"
sleep
end tell
end RecordingDone

Als RecordingDone.scpt speichern

Script nach /Library/Application Support/EyeTV/Scripts/TriggeredScripts kopieren.

EyeTV neustarten

 

 

Update 😉

on RecordingDone(recordingID)
	tell application "EyeTV"
		set limit to 30 * minutes
		set ausmachen to true
		set vorlauf to (prepad time + 2) * minutes
		set jetzt to current date
		repeat with aufnahme in start time of programs
			set diff to aufnahme - jetzt
			if diff ≥ vorlauf then set diff to diff - vorlauf
			if diff ≥ 0 and diff ≤ limit then set ausmachen to false
		end repeat
		if is_recording = false and ausmachen = true then
			activate
			set antwort to display dialog "ausschalten?" buttons {"nein", "ja"} default button "nein" giving up after 30
			if button returned of antwort = "ja" or button returned of antwort = "" then
				tell application "Finder"
					shut down
				end tell
			end if
		end if
	end tell
end RecordingDone

 

Weitere Scripte:

http://support.elgato.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=2727