I didn't really know how to word my question in only a few words for the head line... Let me try to explain my problem:
I have a script that attaches .png files to point features. The idea is to have those files matched to the point that have the same UID as the point.
<SPAN class="keyword token">def</SPAN> <SPAN class="token function">AddAttachmentsToUid</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">:</SPAN>
arcpy<SPAN class="punctuation token">.</SPAN>GenerateAttachmentMatchTable_management<SPAN class="punctuation token">(</SPAN>_location_for_points<SPAN class="punctuation token">,</SPAN> _location_for_attachments<SPAN class="punctuation token">,</SPAN>
_matchtable<SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"UID"</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="string token">"*.png"</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"ABSOLUTE"</SPAN><SPAN class="punctuation token">)</SPAN>
arcpy<SPAN class="punctuation token">.</SPAN>AddAttachments_management<SPAN class="punctuation token">(</SPAN>_location_for_points<SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"OBJECTID"</SPAN><SPAN class="punctuation token">,</SPAN> _matchtable<SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"MatchID"</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"Filename"</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>