Re: Fade Itunes
Re: Fade Itunes
- Subject: Re: Fade Itunes
- From: Michelle Steiner <email@hidden>
- Date: Mon, 20 Sep 2004 13:36:13 -0700
On Sep 20, 2004, at 12:49 PM, Johnny AppleScript wrote:
tell application "iTunes"
set fadeStep to 10
set currentVol to sound volume
set newVol to currentVol
repeat
set newVol to newVol - fadeStep
set sound volume to newVol
if sound volume is 0 then exit repeat
end repeat
What happens if sound volume is less than zero (subtracting 10 from 7,
for example)? Shouldn't that exit line be this?
if sound volume is less than or equal to 0 then exit repeat
if sv is currentVol or sv is greater than currentVol then exit
How about this instead?
if sv is greater than or equal to currentVol then exit repeat
-- Michelle
--
"Beware the march of ideas."
_______________________________________________
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