> I was thinking of this:
> shorttext= replacechars(select(clip.get,20), esc(?"\n",?"\"), "")
> ...

I changed it to this:

shortclip = select(clip.get,200)
if(shortclip == "")do
  shortclip = (date ++ "_" ++ time)
else
  regex.replaceg(shortclip, ?"[^A-Za-z0-9 ]", " ", "shortclip")
  regex.replaceg(shortclip, ?" +"," ", "shortclip")
  shortclip = select(shortclip,20)
endif
clip.save(exefilename ++ ?"0_" ++ shortclip)


Notes: it starts with a long string, in case the clip
starts with a line such as this:
";;------------------------------------"

Then it changes all non-alphanumeric chars to a space.
Then reduces all multiple spaces to one space.
Finally cuts it to the desired length.

Typical resulting filenames:

photoshop0_20060612_154928.PowerProClip
winword0_some cleaned up text.PowerProClip



------------------------ Yahoo! Groups Sponsor --------------------~--> 
You can search right from your browser? It's easy and it's free.  See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~-> 

Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> 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/
 


Reply via email to