-- find how long till sleep display dialog "how many minutes do you want to play music:" default answer 60 set howlong to text returned of the result set sleeptime to howlong * 3 -- number of seconds between sound reduction