Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Even in iTunes 11, there is no fade out when pausing playback or fade in when starting playback. How can I achieve this?

share|improve this question

In Automator, create a new Service, add a Run AppleScript action to it, and enter the following script:

set current_application to (path to frontmost application as Unicode text)
tell application "System Events"
    if process "iTunes" exists then
        tell application "iTunes"
            set current_volume to the sound volume
            if (player state is playing) then
                    repeat with i from current_volume to 0 by -1
                        set the sound volume to i
                        delay 0.01
                    end repeat
                    set the sound volume to current_volume
                    exit repeat
                end repeat
                set the sound volume to 0
                repeat with j from 0 to current_volume by 1
                    set the sound volume to j
                end repeat
            end if
        end tell
        tell application current_application
        end tell
    end if
end tell

You can assign a keyboard shortcut to it in System Preferences > Keyboard > Keyboard Shortcuts > Services.

share|improve this answer
This works perfectly and it should be marked as the solution. Thank you, I love it. – Elliott Feb 10 '14 at 18:44

you can use this script, Im using this for fade out/in music when I pause or play my music, or skipping songs, its great and works fine with the built in crossfade from playback menu.its great for party play list and works just fine with the latest version of itunes (12.1.2)

share|improve this answer
Hi Kamran, welcome to Ask Different.If possible, add the script here for reference. Links tend to get stale. – Jaime Santa Cruz Jun 24 '15 at 23:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.