How to tell if iTunes in the mini player mode from applescript
You can do something like that : 

tell application "System Events"
    tell process "iTunes"
        if title of window 1 is "MiniPlayer" then
            -- If mini player
        else if title of window 1 is not "MiniPlayer" then
            -- if big player 
        end if
    end tell
end tell