cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Editor from command line actions on current file

ChrisWestern
7-Bedrock

Editor from command line actions on current file


Hello All,


I have a query i hoped someone can throw some light on please.


How to drive AE from external application, eg. to get it to run anything simple like "beep" or "caret" from the command line, on an XML file that is already open.


Starting Editor fresh and doing this on a newly opened file is no problem (as below).


[editor.exe -C2 "beep" "myfile.xml"]
OR
[editor.exe -C2 "source mycommands.acl" "myfile.xml"]


I have tried variations of getting the current doc, focusing the current window, current this and that, with no luck so far

Any suggestions would be welcome.


Many thanks


Chris

2 REPLIES 2

Chris,

You might want to try using the doc_list ACL function to get a list of open
document identifiers, then use functions like doc_name or doc_path to find
the one you're after. Once you have the right document identifier, you
should be able to do what you want.

You might try using -b and -c to have the ACL run silently without opening
a new window. I'm not sure, but you may be able to use these to just run
the ACL commands without specifying a file to open. If not, you might try
just specifying a dummy file.

-Brandon 🙂



Thank you Brandon for the hints, i'll have a look into this approach the next opportunity.


Best Regards


Chris

Top Tags