Open boredom2 opened 3 years ago
I think a mix of this panel sample and Property Explorer extension will help you.
E.g. here I invoke open file command:
app.invokeCommand(Application.COMMAND_FILE_OPEN)
Did you figure this out? I'm trying to either open a new document or change the path of an existing one? I don't see how I can pass a path to invokeCommand
. I have to bring up a dialog box which I don't want.
The answer was the following for other lost souls like myself.
function importPath(path) {
var openParam = new DocumentOpenParameter();
openParam.path = path;
var newDoc = app.openDocument(openParam)
}
FYI, most of the documentation is in "Object Model Viewer" from Adobe ExtendScriptToolkit.
Hi there,
I searched for quite a time and even tried various Guessed, but I was unable to find out:
Is there anyone, who can point me in the right Direction or has a link to a Sample or propper Docs?
Thanks for your Help. Christoph