They are both sealed systems. Nothing is getting in to the a/c and the only thing getting in the to the intake is coming threw the air filter. The condenser on the A/C and the intercooler are just radiators. Read the following from how stuff works to get an idea of the process. Just replace coolant with air for the intercooler and replace coolant with refrigerant for the A/C.
A radiator is a type of heat exchanger. It is designed to transfer heat from the hot coolant that flows through it to the air blown through it by the fan.
Most modern cars use aluminum radiators. These radiators are made by brazing thin aluminum fins to flattened aluminum tubes. The coolant flows from the inlet to the outlet through many tubes mounted in a parallel arrangement. The fins conduct the heat from the tubes and transfer it to the air flowing through the radiator.
The tubes sometimes have a type of fin inserted into them called a turbulator, which increases the turbulence of the fluid flowing through the tubes. If the fluid flowed very smoothly through the tubes, only the fluid actually touching the tubes would be cooled directly. The amount of heat transferred to the tubes from the fluid running through them depends on the difference in temperature between the tube and the fluid touching it. So if the fluid that is in contact with the tube cools down quickly, less heat will be transferred. By creating turbulence inside the tube, all of the fluid mixes together, keeping the temperature of the fluid touching the tubes up so that more heat can be extracted, and all of the fluid inside the tube is used effectively.
Picture of radiator core:
Radiators usually have a tank on each side, and inside the tank is a transmission cooler. In the picture above, you can see the inlet and outlet where the oil from the transmission enters the cooler. The transmission cooler is like a radiator within a radiator, except instead of exchanging heat with the air, the oil exchanges heat with the coolant in the radiator.