See:
for an example of creating a macro.
You can edit actions in a macro by assigning the xml using AppleScript. So it would not be very difficult to do what you want to do.
See:
for an example of creating a macro.
You can edit actions in a macro by assigning the xml using AppleScript. So it would not be very difficult to do what you want to do.