Sounds like a useful feature, but I don't think we have that.

Here's a workaround (untested):

for myfile in *.mol
do
  obabel $myfile --separate --title=$myfile >> test.smi
end

You will have to adjust the syntax of the "for" loop for your
particular shell or operating system.

- Noel

On 7 June 2011 10:17, MarkEarll <[email protected]> wrote:
> Hi,
>
> I am converting a directory full of .mol files to a smiles file using:
> babel *.mol -O test.smi --separate  --addformula
>
> I would like to add the filename as a title but cannot find the command in
> the obabel user guide
>
> I've tried  --append filename or --addtotitle filename or --title=mol.name ,
> none of which works
>
> Please can anyone tell me the correct keyword?
>
> Many thanks,
>
> Mark
>
> --
> View this message in context: 
> http://forums.openbabel.org/Add-filename-to-title-during-conversion-tp3579062p3579062.html
> Sent from the openbabel-scripting mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> EditLive Enterprise is the world's most technically advanced content
> authoring tool. Experience the power of Track Changes, Inline Image
> Editing and ensure content is compliant with Accessibility Checking.
> http://p.sf.net/sfu/ephox-dev2dev
> _______________________________________________
> OpenBabel-scripting mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openbabel-scripting
>

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
OpenBabel-scripting mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbabel-scripting

Reply via email to