{	
	PathName = [paths objectAtIndex:0];   // Pathname and path are global
	
	 NSTask *aifctask = [[[NSTask alloc] init] autorelease];
  
	[aifctask setStandardOutput: [NSPipe pipe]];
    [aifctask setStandardError: [aifctask standardOutput]];
    [aifctask setLaunchPath:@"/usr/bin/afconvert"];
	[aifctask setArguments:
	 [NSArray arrayWithObjects:
	  @"-d",
	  @"BEI24",
	  @"F32@44100",
	  PathName,
	    nil
	  ]
	 ];
      [aifctask launch];
      NSData *data ="" alloc] init];
	data = "" standardOutput] fileHandleForReading] availableData];
	[data writeToFile:derPfad atomically:NO];
	
       [aifctask terminate];
	[aifctask release];	
}
afconvert help:
Usage:
afconvert [option...] input_file [output_file]
    Options may appear before or after the direct arguments. If output_file
    is not specified, a name is generated programmatically and the file
    is written into the same directory as input_file.
afconvert input_file [-o output_file [option...]]...
    Output file options apply to the previous output_file. Other options
    may appear anywhere.