Damoon,
It is quite possible to add/update/delete attachments automatically in the workflow. The code below was used to 'clean up' a log field from the form and add contents of that field into an attachment. (In JScript for AWS 6.2, this is not complete script, but should give you enough to work with.)
===start script===
//create file system object
oFSO = new ActiveXObject("Scripting.FileSystemObject");
//open/create files
oFile = oFSO.OpenTextFile(strFileName, ForAppending, true);
//Build the History line.
strHistoryLine = WorkItem.getFieldValue("txtHistory");
oFile.Write(strHistoryLine);
//then close and clean up
oFile.Close();
//and then add the file into the attachments collection
var oAtt = Agent.createObject("attachment");
//attachment name must be unique so add datetime to it
oAtt.name = "(Automated) History up to " + TimeStamp+".txt";
oAtt.get(strFileName, true);
WorkItem.attachments.append(oAtt);
Agent.log("Attachment was created to workflow");
===end script===
The time when you may not be able to use the code is in the OnAssign of a initiating task - the workitem object is not created yet by the time OnAssign is run.
Hope this helps,
Sanna