Hi all,
I am a new user trying to migrate from MultiEdit.
MultiEdit has a nice feature which I am trying to replicate with some script.
When starting from command line from a specific directory, ME automatically loads the session associated to that directory/project and if there is not any, it creates a new one.
With UE I currently made a batch file which loads the ue.prj file in the current directory, but this does not create an empty project if the ue.prj file is not there.
I wish to create a script automatically called by the batch which performs these steps:
- if ue.prj is not present it creates a default empty project (it's an ASCII file so it's easy)
- if it is present it opens it
- changes UE current directory to the command shell current directory
The first two steps can be performed also by an external simple application, but the third not. To be clean I am trying to create a unique script which does all these steps.
I am stuck on the following points:
- how can I know the current directory from a Script?
- how can I change the current directory of UE? I mean when I press Open... I would like to see the explorer box starting from the path I have launched UE.
Anyone has some ideas?
Another question (I think there is already the answer in this forum, but I can't find), how can I know the filename and directory of an opened file? I see there is isExt and isName in the document object, but can't see something like getName(), ...
Thanks in advance to everybody.
Giorgio
I am a new user trying to migrate from MultiEdit.
MultiEdit has a nice feature which I am trying to replicate with some script.
When starting from command line from a specific directory, ME automatically loads the session associated to that directory/project and if there is not any, it creates a new one.
With UE I currently made a batch file which loads the ue.prj file in the current directory, but this does not create an empty project if the ue.prj file is not there.
I wish to create a script automatically called by the batch which performs these steps:
- if ue.prj is not present it creates a default empty project (it's an ASCII file so it's easy)
- if it is present it opens it
- changes UE current directory to the command shell current directory
The first two steps can be performed also by an external simple application, but the third not. To be clean I am trying to create a unique script which does all these steps.
I am stuck on the following points:
- how can I know the current directory from a Script?
- how can I change the current directory of UE? I mean when I press Open... I would like to see the explorer box starting from the path I have launched UE.
Anyone has some ideas?
Another question (I think there is already the answer in this forum, but I can't find), how can I know the filename and directory of an opened file? I see there is isExt and isName in the document object, but can't see something like getName(), ...
Thanks in advance to everybody.
Giorgio