How to open a file and perform an action on it.

2007-12-09 Thread Mark
I have a simple question regarding file manipulation. I am trying to open a file using a program (e.g. word, excel, etc.) and then perform an action on it using the program and save it as a new file name. If someone could point in the direction of an example of something like this. FYI, the

Re: How to open a file and perform an action on it.

2007-12-09 Thread yitzle
If you just want to open a file and save it under a different name, you can just copy the file. If you want to do something that has to be done via a specific program, you might want to consider a macro program like AutoHotKey (http://www.autohotkey.com/) -- To unsubscribe, e-mail: [EMAIL

Re: How to open a file and perform an action on it.

2007-12-09 Thread Chas. Owens
On Dec 8, 2007 9:57 PM, Mark [EMAIL PROTECTED] wrote: I have a simple question regarding file manipulation. I am trying to open a file using a program (e.g. word, excel, etc.) and then perform an action on it using the program and save it as a new file name. If someone could point in the

Re: How to open a file and perform an action on it.

2007-12-09 Thread reader
Mark [EMAIL PROTECTED] writes: I have looked at the perlopen tuturial, but I am still not sure how to accomplish this. I just can't believe that it is as easy as, open(INFO, datafile) || die(can't open datafile: $!); In other words how does it know what software to open the datafile

Re: How to open a file and perform an action on it.

2007-12-09 Thread Mark
Yes, this seems like what I want to do. I would like to open the file using the external software program, run one command on it using the external software, and then save it. The software like I said before is not widely known. What happens is the drill program is made through a main CAD

Re: How to open a file and perform an action on it.

2007-12-09 Thread reader
Mark [EMAIL PROTECTED] writes: Yes, this seems like what I want to do. I would like to open the file using the external software program, run one command on it using the external software, and then save it. If that one command is not setable from a command line it will become seriously