What file are you trying to attach?
It's unlikely that attaching a file will send only a single record, it would send your entire database file unless you first did something to produce a file that contained that one single record.
But you might:
Use Save As PDF to send a specific report from a specific layout--perhaps based on a single record
Export the data from a single record to a FileMaker, text, excel or other file format.
Save as Snap Shot Link--this saves a "pointer" to the record so if the other user has access to your database, they can open the snap shot link to access the file.
By using a $Path variable, you can first compute the name and location of the file you want to produce by saving or exporting and then you can specify the same $Path as the attachment for your email.
I am trying to email a PDF copy of a record created in my "freight Quote" layout to my vendor for a quote on hauling freight from point A to point B. My bad for calling it a "file" I meant record. sorry. Happy to send you a copy of my file should you like its small 1.08mb.
Shouldn't need to send the file.
Let's say you use Save As PDF to generate the Freight Quote as described in this link: Found Sets to PDF with unique file names
And in that part of your script, you used $Path to specify the file path where the PDF was saved.
Then you can add the send mail script step to your script.
Open the Send Mail dialog for this script, click the attach file check box and enter this exact text:
as the file to attach.
Your email will now have attached the PDF file.