Wolle-77 •--->


Anmeldedatum: 25.02.2003 Beiträge: 449 Wohnort: Geldern
|
Verfasst am: 21.05.2006 - 17:57 Titel: iTunes Countdown-Steuerung |
|
|
Hallo, eine nicht große Sache, aber praktisch:
Durch Stöbern im Forum www.apfeltalk.de, wo noch interessante Anfänger-Fragen gestellt werden, (hier: http://www.apfeltalk.de/forum/skript-um-itunes-t39581.html ), ich bin dort als Macmissionar angemeldet, habe ich mal so ein Script erstellt. Es greift nur kurz in iTunes ein, um den Rest der Zeit still zu sein -- also das Gegenteil von einer kompletten Steuerung.
Um also ein vor sich hinspielendes iTunes zu einer bestimmten Urzeit sachte herunterzudrehen (Lautstärke), eine andere Quelle (in dem Beispiel: Geburtstagscountdown) abzuspielen und dann iTunes wieder hochzudrehen, kann das hier benutzt werden:
Code: |
on idle
my ituneschec()
return 1
end idle
on itunescheck()
if time of (current date) is greater than or equal to 86350 then
tell application "iTunes"
repeat with i from 100 to 0 by -1
set sound volume to i
delay 0.1
if i is 50 then tell application "QuickTime Player" to play movie 1
end repeat
end tell
tell application "QuickTime Player"
repeat
set countdownende to playing of movie 1
if countdownende is false then exit repeat
end repeat
end tell
tell application "iTunes"
repeat with i from 0 to 100
set sound volume to i
delay 0.1
end repeat
end tell
end if
end itunescheck |
_________________ Martin Wolter
--
Apple rocks the planet! |
|