Can Flash CS4 be started on command level

Hi all

I was wondering whether it is possible to start Flash CS4 (or any other Flash version) authoring using a command.
The project is related to a virtual supermarket. The client needs to delete existing products (jpg) from its web site and replace them with new ones.

Basically I have a swf file which has one jpg file in each keyframe. What I want to do is to start Flash, access some keyframes delete some jpg files and load new ones and generate the new swf file. However, I want to do this automatically, ie; using a scheduler.
Would Flex solve this problem?

Thanks
Hagop