How do you "Paste In Place" in javascript?
I'm seeing a problem when running copy merged and then paste from script. If there is no alpha component in the mask, it looks like photoshop internally crops the layer to useful content. Then when you paste, it pastes only the useful content meaning meanin it's translated so pixels at the top and left have content. This is really stupid default behavior. However, the UI has a way to work around this, you run Edit | Paste In Place and it keeps the translation component it figured out when running copy merged. Great.
Unfortunately since I'm working from script I don't see a way of running Paste In Place as it is not in the commands exposed on Document. I tried looking at the javascript recording and there appears to be nothing output for that specific command. Argh! Does anyone know if photoshop has a way to script this?
Otherwise, I'm gonna have to look at a completely different way of recording out this stuff.
Thanks,
Adrian