Hi,
I've not written any macros before. I'm not sure how to approach what seems like
a simple problem - run a macro on all files in a project.
I was hoping to run an existing macro that a coworker wrote on all files within a single project.
Using active project or selecting project are fine.. but I want to isolate to one project, because
the macro I want to run alters the files - it's a reformatting thing.
I see from the demo linecount.e that there is the possibility of running a macro function
on everything in a workspace.
the demo uses:
_GetWorkspaceFiles( )
and then GetProjectfiles( )
After discovering the macros folder under slickedit, and looking at how some functions are written,
it looks like I may just want call GetProjectfiles( ) with the variable _project_name.
Sound right?
I'm guessing this based on usage - I haven't seen a description for _project_name.
(This all seems sort of obscure.. is there something more obvious I haven't noticed?
Surely this has been done many times before...)
I was also looking at making this a project command in the project properties, under tools.
I just can't figure out how to apply a "macro command" to many files at once,
without writing a new macro to perform the looping..
any tips appreciated..
thanks,
P Chady