This script changes embedded raster-images back to linked images. If the file does not exist anymore, you will see a red questionmark in the link-palette. This script is useful, if you have placed and embedded an image, but you wanted to link the image.
Select all relevant objects and execute this script. It doesn't matter if you have also selected some paths or groups.