Hi [USER=135828]@samsimon[/USER]
I believe I understand what you need as an end result. Unfortunately, when the image was created with anti-aliasing turn on, it gets baked into the image and there is no magic button to turn it off after it is created. So the steps I suggested were to as best as I knew how to correct the anti-aliasing.
For the example you provided, the approaches I documented above work well. There are other techniques as well. They all can be done with an Action and that action used on a batch of files with the File > Automate or File > Batch approaches.
The key with any of the techniques when you have a multitude of images to address and you want an automated solution is the files need to be of the same Layer and Layer Mask structure or be able to get the files in some standard condition. Next to best case is to group the files into similar classes of Layer Stack structure.
For example, are all of your images of the same structure as the PSD file you provided with an opaque set of pixels with no transparency and a Layer Mask that has the antialiasing? Do they all have the grouping as in the example (not sure why its group as there is only one Layer?
If the types of work you have are all different, it make be more involved and in need of a custom script to search and identify what needs to be done on every Layer of the PSD file and take appropriate action for each. Writing a script of that nature may be more work that an intermediate solution.
If your examples were all of the type where you did have the first Layer as non transparent pixels with a Layer Mask with antialiasing, that would yield to an Action quite well.
Maybe another forum member has some better suggestions yet I am pretty confident with at least one way that would work.
Hope this helps
John Wheeler