Re: Fade Itunes
Re: Fade Itunes
- Subject: Re: Fade Itunes
- From: steve harley <email@hidden>
- Date: Mon, 20 Sep 2004 13:48:11 -0600
on 20 Sep 2004, at 10:54 AM, Ron Rosson wrote:
Calling Applescript from Cocoa using an NSAppleScript object. Would
like to
be able to fade out a currently playing song on iTunes.
here's a simple approach:
tell application "iTunes"
set orig_vol to sound volume
repeat with new_vol from orig_vol - 5 to 0 by -5
set sound volume to new_vol
delay 1
end repeat
stop -- playback
set sound volume to orig_vol
end tell
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >Fade Itunes (From: Ron Rosson <email@hidden>) |