Here are a couple of snippets of code to get you started:
Get the GraphicsImporter OSAX for most of the scripting you want done as it does most of the work without opening the image. Also, check out iMagine, which will do all of this and more through applescript. Tons cheaper than PhotoShop.
But if you must use Photoshop use the “do action” and build your actions and run the script. Become very familar with the Photoshop Applecript Dictionary.
For applying a ICC Profile use ColorSync
on adding folder items to watchFolder after receiving anyFiles
tell application "ColorSyncScripting"
embed TheFile with source "Color Monitor Profile" matching with perceptual intent using quality best saving into TheFile with replacing
end tell
tell application "Adobe Photoshop 7.0"
open TheFile as TIFF with options {class:TIFF open options, mode:RGB showing dialogs never
do actions "myActions"
end tell
end adding folder items to