A macro for use by an application program is described. The macro is embedded
in
a macro file including at least two versions of executable configuration code corresponding
to two different operating systems to interface the macro file to an application
program. Attached to the macro file is a sequence of actions to apply to an application
file produced by the application program. Also attached is application identification
information that identifies an original host application corresponding to the macro.
The sequence of actions in the macro file can be produced by storing commands,
applied to a data file opened in the application program, into a log file and transferring
at least one stored command from the log file to the macro file.