Loading ...
Sorry, an error occurred while loading the content.
 

[Clip] File name

Expand Messages
  • Claes Gauffin
    Hi all Occasionally I want to enter the name of a file (with its complete path) in texts that I write. Rather than looking up its position with Explorer,
    Message 1 of 3 , Feb 4, 2000
      Hi all

      Occasionally I want to enter the name of a file (with its complete path) in
      texts that I write. Rather than looking up its position with Explorer,
      memorizing the path and tapping it down with umpteen misspellings, I would
      like a clip to help me (surprise!).
      It would display a dialog akin to the Open Document, I would navigate to
      the desired file, click on it, and Presto! the full file name would be
      entered at the insertion point.

      Anyone done anything like it?

      /Claes
    • Eb Guenther
      Hi Claes, ... Using the HTML Tag wizzard specifier, and converting the URL encoding back to plain ASCII. The following output:
      Message 2 of 3 , Feb 4, 2000
        Hi Claes,

        > It would display a dialog akin to the Open Document, I would
        > navigate the desired file, click on it, and Presto! the full
        > file name would be entered at the insertion point.


        Using the HTML Tag wizzard specifier, and converting the
        URL encoding back to plain ASCII.

        The following output:

        "HREF="file:///c|/program%20files/notetab%20pro/documents/squeegee.txt"
        "c|/program%20files/notetab%20pro/documents/squeegee.txt"
        "c:/program%20files/notetab%20pro/documents/squeegee.txt"
        "c:\program%20files\notetab%20pro\documents\squeegee.txt"
        "c:\program files\notetab pro\documents\squeegee.txt"

        was created by this clip (extra inserts for illustration only):

        ^!Set %filename%=^?{(T=T;F="Text Files|*.txt")Browse to desired File==*.txt}
        ^!InsertText "^%filename%^%NL%
        ^!Set %filename%=^$StrDelete(^%filename%;1;14)$
        ^!InsertText "^%filename%^%NL%
        ^!Set %filename%=^$StrReplace("|";":";"^%filename%";No;No)$
        ^!InsertText "^%filename%^%NL%
        ^!Set %filename%=^$StrReplace("/";"\";"^%filename%";No;No)$
        ^!InsertText "^%filename%^%NL%
        ^!Set %filename%=^$StrReplace("%20";" ";"^%filename%";No;No)$
        ^!InsertText "^%filename%^%NL%


        On NT, NoteTab's escape character "\" does not work. That's
        why I could make a straight replacement. You may have to
        experiment with the slash swapping.


        Cheers,


        Eb
      • Claes Gauffin
        Hi Eb, ... Thanks a lot Eb! That was exactly what I needed. I tend to forget the power of those wizzards. Regards /Claes
        Message 3 of 3 , Feb 4, 2000
          Hi Eb,

          At 08:42 2000-02-04 -0600, you wrote:

          >
          >Using the HTML Tag wizzard specifier,
          ...

          >
          >^!Set %filename%=^?{(T=T;F="Text Files|*.txt")Browse to desired File==*.txt}
          >^!InsertText "^%filename%^%NL%


          Thanks a lot Eb! That was exactly what I needed. I tend to forget the power
          of those wizzards.

          Regards /Claes
        Your message has been successfully submitted and would be delivered to recipients shortly.
        »
        «