• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Fade Itunes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Fade Itunes (From: Johnny AppleScript <email@hidden>)

  • Prev by Date: Re: application file id/can't find disk
  • Next by Date: Re: Change in debugging command "log"?
  • Previous by thread: Re: Fade Itunes
  • Next by thread: Re: Fade Itunes
  • Index(es):
    • Date
    • Thread