We have developed an Automation plugin to handle File events like Open/Close/Save/Save As etc.
We get proper control into the automation plugin when we use Photoshop File Menu to open file.
When we open file from Finder, we get control into our automation plugin.
However, when we open file using applescript, we do not get control into our automation plugin. (following is the applescript).
tell application "Adobe Photoshop CS"
open file "G5 HD:pictures:sampleimage.jpg"