Compress texture based on iPhoneGeneration

Hi,

Is it possible to load all texture from a certain path and change the TextureFormat by code at runtime? I wish if I could use RGBA compressed format for all textures running on 1st and 2nd generation of iphone, and also switch to non-compressed texture for 3GS and iphone4. I know iphone generation can be detected by using a iPhoneSettings script but how to convert all texture format?

compression is nothing you can do on the device, its done in the editor.
once set in the editor its set and will remain like that.

as such the only way to change the compression on the fly is that you have 2 textures present, one with compression and one without it.