myFile.execute() in Photoshop DOM

Run or open the file.

Return Type


Attempt to find the application associated with this file. If found, load the application and cause it to load the file. This method may be used to execute a file much as it had been double-clicked in the Finder or Explorer. It can be used to run scripts, to launch other applications and much more.

Since this method opens a severe security hole, it is disabled by default. To enable the method, use the security flag sSEC_FILE_ALLOW_EXECUTE.

The method returns immediately after launching the application. It does not wait for the application to terminate. It returns true if the launch was successful.