Removing unnecessary fields from the applescript.