Category Archives: Media

Tech Gets Crazy

I’ve started a new blog… http://techgetscrazy.blogspot.com

I’ve decided to make Rex.FM more of a personal blog, while I’ll post my crazy, tech-related posts over at TechGetsCrazy. I feel like it will be a better outlet for my ideas without pushing my personal brand too much. I mean, I really want Rex.FM to be about me, not my crazy ideas. So anyway, expect some coolness over there, if you’re interested, and subscribe via Google Reader or whatever if you like… feel free to expect some awesomeness. http://techgetscrazy.blogspot.com

Applescript: Fade iTunes to Selected Track

Ever playing music for other people from iTunes? And want to change the song without everyone noticing? Trying to do a manual fade is tough. This script lets you select the next song you want to play, and then fade the volume out and in to that track. Download: itunes-fade-to-selected-track.zip


property initialVolume : null
tell application "iTunes"
set speed to 5 -- lower means slower fade
if sound volume = 0 then -- if volume is all the way down, fade in
play
set initialVolume to 60
repeat until (sound volume) is greater than or equal to (initialVolume - speed)
set sound volume to (sound volume + speed)
end repeat
set sound volume to initialVolume
else -- fade out, skip to selected track, fade in
set initialVolume to (get sound volume)
repeat until (sound volume - speed) is less than or equal to 0
set sound volume to (sound volume - speed)
end repeat
set sound volume to 0
play selection
repeat until (sound volume + speed) is greater than or equal to initialVolume
set sound volume to (sound volume + speed)
end repeat
end if
end tell