title: How to access app package contents folder in cocoa?
body: <p>I have tried this code but it works for the download folder (example path: <code>/Users/%@/Downloads/</code>) not for the application folder. So I want to access  <code>Application/iTunes/contents/</code>, but I was unable to access this path.</p>
  
  <p>My code: </p>
  
  <pre><code>- (IBAction)showTrashPressed:(id)sender
  {
      NSString *trashPath = [NSString stringWithFormat:@"/Users/%@/Applications/",NSUserName()];
      ////NSLog(@"%@",trashPath);
  
      //[[NSWorkspace sharedWorkspace] selectFile:trashPath inFileViewerRootedAtPath:@"Finder"];
  
      [[NSWorkspace sharedWorkspace]openFile:trashPath withApplication:@"Finder"];
  }
  </code></pre>