The plasma based synthesis of thin films is frequently used to deposit ultra-thin and pinhole-free films on a wide class of different substrates. However, the synthesis of thin films by means of low temperature plasmas is rather complex due to the great number of different species (neutrals, radicals, ions) that are potentially involved in the deposition process. This contribution deals with polymerization processes in a capacitively coupled discharge operated in a mixture of argon and aniline where the latter is a monomer, which is used for the production of plasma-polymerized polyaniline, a material belonging to the class of conductive polymers. This work will present a particular experimental approach that allows to (partially) distinguish the contribution of different species to the film growth and thus to control to a certain extent the properties of the resulting material. The control of the species flux emerging from the plasma and contributing to the film growth also sheds new light on the deposition process, in particular with respect to the role of the ion component. The analysis of the produced films has been performed by means of Fourier Transform Infrared spectroscopy (FTIR) and Near Edge X-ray Absorption Fine Structure spectroscopy (NEXAFS).