Loading file Macro
Submitted by Monday, 19 April, 2004 - 21:15
on
Hi All,
Background:
I have been using jEdit for a few months and just starting to play with the Macros. I am ultimatly trying to change the permissions of a file and to edit a line of code. I use source safe and a local enviornment and have to modify a struts config file, which is read only until checked out. To make my life simple, I want to remove the read only attribute and find my DB reference line and change it to my local DB.
My problem:
I can change the attribs easily enough with
runCommandInConsole(view,"System","attrib amp-config.xml -r");
But I now need to load the file. I am not sure how I would load it into the buffer so I can see and manipulate it.
Any Suggestions?
Thanks
Tom
Background:
I have been using jEdit for a few months and just starting to play with the Macros. I am ultimatly trying to change the permissions of a file and to edit a line of code. I use source safe and a local enviornment and have to modify a struts config file, which is read only until checked out. To make my life simple, I want to remove the read only attribute and find my DB reference line and change it to my local DB.
My problem:
I can change the attribs easily enough with
runCommandInConsole(view,"System","attrib amp-config.xml -r");
But I now need to load the file. I am not sure how I would load it into the buffer so I can see and manipulate it.
Any Suggestions?
Thanks
Tom