I want to load a palette file (.pal) to images which i have opened. as images are huge i cant do it manually. can any one suggest me to do this.
This probably belongs on SU or SO, but since we're here, and it's vaguely design-related, here goes:
Since a .pal is a "sidecar" file, it only has to have the same name as the bitmap file it accompanies and be in the same directory. The fast way to do what you need would be to construct a simple script in Mac OS or Windows. There is no need to open the files at all.
The following instructions are for Windows, but the same procedure applies in Mac OS or Linux.
In Mac OS or Linux, the same general procedure applies, but in that case I'd probably pipe the ls output through sed using the same regular expression to get the executable in one shot.
In either case, do check the script file to make sure you got the command lines correct before you run it. It will save unnecessary deleting of bogus files!