or a little obfuscated with regexps but without any conditionals:
1. get matchText(myFile,"([^.jpg])$", a); put replaceText(myFile,"([^.jpg])$",a & ".jpg") into myFile
2. replaceText(myFile,".jpg","")

best wishes :-)
Viktoras

Francis Nugent Dixon wrote:
Hi from Paris,

You guys have always spoofed me with what you can do with
Transcript. Some of your coding makes me look silly.
I obviously don't "grab" Transcript like you do !

So I have a little test for you. I want to :

1 -add
2 -remove

a ".jpg" suffix from a file name that I'm holding in a variable.

Have you got a couple of one-liners to do that ?

With Thanks

-Francis

_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution



_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to