Index: trunk/PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm
===================================================================
--- trunk/PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm	(revision 27783)
+++ trunk/PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm	(revision 27795)
@@ -455,20 +455,27 @@
     my $inverse = $option_mask & $PSTAMP_SELECT_INVERSE;
 
-    my $command = "$difftool -diffskyfile -dbname $imagedb";
+    my $command = "$difftool -dbname $imagedb";
     
     if ($byid) {
-        $command .= " -diff_id $id";
+        $command .= " -listrun -diff_id $id";
     } else {
-        $command .= " -diff_skyfile_id $id";
+        $command .= " -diffskyfile -diff_skyfile_id $id";
     }
     $command .= " -skycell_id $skycell_id" if $skycell_id;
 
-    my $images = runToolAndParse($command, $verbose);
-
-    my $n = @$images;
+    my $output = runToolAndParse($command, $verbose);
+
+    my $n = @$output;
     if (!$byid && ($n > 1)) {
         die ("difftool returned an unexpected number of diffskyfiles: $n");
     } elsif ($n == 0) {
         return undef;
+    }
+
+    my $images;
+    if ($byid) {
+        $images = selectComponents($ipprc, $imagedb, 'byid', 'diff', $rowList, $output, $verbose);
+    } else {
+        $images = $output;
     }
 
