Hi Peter, Even with the (much more readable) TCL call, you're still stuck with the problem of breaking the path into two parts and hard-coding one of them in the dataset fanout. That TCL function is good to know about. I really must find time to learn enough TCL to be dangerous. Right now my TCL comprehension is enough to be middling ineffectual... Are TCL regular expressions expensive, or do you just not prefer them because of their relative complexity? I know that I always have to make sure to comment REs so that I can remember what they're for :) Jason
________________________________ From: [email protected] on behalf of peter laulund Sent: Mon 2005-06-27 1:22 AM To: [email protected] Subject: RE: [fme] FME -how extract source dataset directory attribute Hi just a comment to Jasons mail rather than using a regular exprsion why not use the 'flile dirname' command from tcl in the tcl caller type in this expresion file dirname [FME_GetAttribute fme_dataset] NOTE this command will convert \ into / but i dont think its a problem for fme. TCL normaly use / as a directory seperator and the \ as an escape character, making it 'interesting' to work with files in tcl on a windows machine. if you want the windows version use this command file nativename [file dirname [FME_GetAttribute fme_dataset]] Peter Laulund National Survey and Cadastre, Denmark Get the maximum benefit from your FME, FME Objects, or SpatialDirect via our Professional Services team. Visit www.safe.com/services for details. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/fme/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
<<winmail.dat>>
