Lied Punkt Mitternacht spielen

apple][c

apple][c

Aktives Mitglied
Thread Starter
Dabei seit
26.01.2005
Beiträge
878
Reaktionspunkte
190
Hallo Gemeinde!

Auf einer Party morgen wird in den Geburtstag reingefeiert. Ich habe eine Playlist in iTunes zusammengestellt, die läuft den ganzen Abend (10 Std Musik sollten reichen ;) )

Jetzt meine Bitte:

Ich brauche ein Appleskript, daß mir Punkt Mitternacht meine aktuelle Playlist anhält (langsam ausfadet) und dann "Happy Birthday" von Stevie spielt und nach dem Lied wieder meine Playlist weiterspielt (langsam einfadet).

Hat jemand so ein Skript oder kann/will ein Skript-Guru mir sowas schreiben. Habe leider nicht mehr die Zeit, mich in AS einzuarbeiten.

Vielen Dank!

LG Marc
 
Warum machst du das nicht einfach manuell?
Wo ist denn das Problem, wenn du kurz zu deinem Rechner gehst, das aktuelle Lied ausfadest, dann "Happy Birthday" reinhaust und nach dem Song deine Playlist weiterlaufen lässt...??? :)

Liebe Grüße
 
Diese Codeschnippsel sollten dir helfen:
Code:
-- Greeting
set jetzt to current date
set ssm to (time of jetzt)
set theDay to weekday of jetzt
set theVoice to some item of {"Vicky"}

if ssm ? 0 and ssm < 3600 then set theMsg to "It's witching time at  " & theDay & "."
if ssm ? 3600 and ssm < 21600 then set theMsg to "I express my condolences. It's " & theDay & "."
if ssm ? 21600 and ssm < 21660 then set theMsg to "It's six o'clock! It's " & theDay & "."
if ssm ? 21660 and ssm < 43140 then set theMsg to "Good morning! It's " & theDay & "."
if ssm ? 43140 and ssm < 43260 then set theMsg to "It's twelf o'clock! It's " & theDay & "."
if ssm ? 43260 and ssm < 64795 then set theMsg to "Good afternoon! It's " & theDay & "."
if ssm ? 64795 and ssm < 64805 then set theMsg to "Good evening! It's " & theDay & "."
if ssm ? 64805 and ssm ? 86399 then set theMsg to "Get the fuck up -  it's late dude! It's " & theDay & "."
say theMsg using theVoice

Code:
tell application "iTunes"
	activate
	set sound volume to 0
	set theTrack to some file track of user playlist "Wecker"
	set theTrackName to name of theTrack
	set theTrackArtist to artist of theTrack
	play theTrack
	say "You are about to hear " & theTrackName & ", by " & ¬
		theTrackArtist & ". "
	-- Volume up
	set u to sound volume
	repeat while u < 100
		set u to u + 1
		delay 0.1
		set sound volume to u
	end repeat
	set visible of window 1 to false
end tell

ist aus nem kleinen Wecker Skript :)
 
danke pks85! das ist ja schonmal ein Anfang!

Warum ich das nicht manuell mache? 1. Feiere ich mit, bin dann wahrscheinlich schon zu betüdelt und außerdem will ich punkt! Mitternacht das lied haben.
 
Zurück
Oben Unten