Re: Fade Itunes
Re: Fade Itunes
- Subject: Re: Fade Itunes
- From: Jakob Peterhänsel <email@hidden>
- Date: Wed, 22 Sep 2004 14:21:14 +0200
On 20. sep 2004, at 18:54, 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.
Anyone know how to accomplish this?
Hi.
Well, I've been doing this with Salling Clicker for over 1 year now, and here is the essential code:
on ()
"iTunes"
(player state )
1
sound volume greater than 0
sound volume (sound volume - 1)
sound volume 0
()
"iTunes"
1
sound volume less than
sound volume (sound volume + 2)
sound volume ≥
iTunesFadeVolumeUp
As you might notice, there is a bug in iTunes regarding adjusting the volume. When you turn it UP, you have to set it to desired level+1. Ie, if you want to add '5' to the current level, you hvae to add 6 !
Going down should be OK.
____________________________________________
Jakob Peterhänsel
Network Consultant
Tel: +45 7022 1014
Fax: +45 7022 1013
Mob: +45 22 68 49 61
email@hidden
www.NetPoint.com
_______________________________________________
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