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

Bad syntax error

Expand Messages
  • Jeff Scism
    This is one of Jody s Clips from Directory Tools clipbook I am getting a syntax error when I browse to the Path. What I am looking for is a inventory of
    Message 1 of 6 , May 4 5:38 AM
    • 0 Attachment
      This is one of Jody's Clips from "Directory Tools" clipbook

      I am getting a syntax error when I browse to the Path.

      What I am looking for is a inventory of JPGs and GIFs in the website
      directory, so I can check to see if all are properly linked. (With FULL
      path)

      Apparently the version changes since Jody wrote this have disabled it
      somehow.

      /I note this line in the code, and wonder if the ampersand is supposed
      to be there?

      /{Do su&bfolders=Yes^=+|_No^=}

      ~~~~~~~~~~~

      ; ^!Continue Gets image file names in whole directory. Continue?

      ^!ClearVariable %Drop%
      ^!ClearVariable %AllNames%
      ^!Jump 1

      ^!SetWizardLabel Browse..., Pull Down, or Type
      <Begin LONG LINE>
      ^!Set %Folder%=^?{(T=D)Browse: full path, end in
      backslash=^$GetValue(DirStuff:Browse)$}; %Drop%=^?{Drop down: full path,
      end in backslash=_If used, Browse is ignored, may enter path
      manually^=1|^$GetValue(DirStuff:Path1)$|^$GetValue(DirStuff:Path2)$|^$GetValue(DirStuff:Path3)$|^$GetValue(DirStuff:Path4)$|^$GetValue(DirStuff:Path5)$|^$GetValue(DirStuff:Path6)$|^$GetValue(DirStuff:Path7)$|^$GetValue(DirStuff:Path8)$|^$GetValue(DirStuff:Path9)$};
      %Subs%=^?{Do su&bfolders=Yes^=+|_No^=}; %Type%=^?{(H=10)File &Types,
      wildcards OK: =_*.gif;*.jpg|All Files^=*.*}; %GetPath%=^?{==Get full
      path^=1|_Filename only}; %SortRemoves%=^?{Remove dupilcates - think
      mutipule folders - filename only==Yes|_No}; %Sort%=^?{Sort
      by=Date|Name|Size|_Type|Unsorted}; %Rev%=^?{Reverse order=Yes^=rev|_No^=}
      <END LONG LINE>

      ; Checks to see if Browse or Drop was used
      ^!IfTrue ^%Drop% Skip
      ^!Set %Folder%=^%Drop%

      ^!SetListDelimiter ^p
      ^!SetArray %FileList%=^$GetFiles("^%Subs%^%Folder%";^%Type%;;^%Rev%^%Sort%)$
      ^!Set %Count%=^%FileList0%
      ^!Set %Index%=0

      :Loop
      ^!Inc %Index%
      ^!If ^%Index% > ^%Count% Show
      ^!IfTrue ^%GetPath% Skip_2
      ^!Set
      %File%=^$GetName("^%FileList^%Index%%")$^$GetExt("^%FileList^%Index%%")$
      ^!Goto Skip
      ^!Set %File%="^%FileList^%Index%%"
      ^!Append %AllNames%=^%File%^%nl%
      ^!Goto Loop

      :Show
      ^!Toolbar New document
      ^!IfTrue ^%SortRemoves% Next else Skip_2
      ^!InsertText ^$StrSort("^%AllNames%";0;1;1)$
      ^!Goto Skip
      ^!InsertText ^%AllNames%
      ^!Jump 1

      ~~~~~~~~~~~

      --


      Jeffery G. Scism, IBSSG
      ~~

      "Proponents of each side are vying with determination to prove their ignorance is greater than the other."

      President Andrew Jackson, discussing a bill going through the US Congress.



      Visit http://ibssg.org/
      For The Blacksheep website, MORE...

      Putnam County Indiana Biographies and Obituaries
      http://ingenweb.org/inputnam/bios/

      Montgomery County Indiana Biographies and Obituaries
      http://ingenweb.org/inmontgomery/bios/

      Fountain County Indiana Biographies and Obituaries
      http://ingenweb.org/infountain/vitals/bios/
    • Axel Berger
      ... Yes. In that place it s a keyboard shortcut. Other than that I ve no idea. What I d try is split the ^!Sets into single variable ones and try to isolate
      Message 2 of 6 , May 4 7:44 AM
      • 0 Attachment
        Jeff Scism wrote:
        > and wonder if the ampersand is supposed to be there?

        Yes. In that place it's a keyboard shortcut. Other than that I've no
        idea. What I'd try is split the ^!Sets into single variable ones and
        try to isolate the problem.

        Axel
      • hsavage
        ... Jeffery, If, in fact, the ampersand you refer to is in one of the Open Directory... clips in the Dirstuff clipbook the answer is, it makes no
        Message 3 of 6 , May 4 8:09 AM
        • 0 Attachment
          Jeff Scism wrote:
          > This is one of Jody's Clips from "Directory Tools" clipbook
          >
          > I am getting a syntax error when I browse to the Path.
          >
          > What I am looking for is a inventory of JPGs and GIFs in the website
          > directory, so I can check to see if all are properly linked. (With FULL
          > path)
          >
          > Apparently the version changes since Jody wrote this have disabled it
          > somehow.
          >
          > /I note this line in the code, and wonder if the ampersand is supposed
          > to be there?
          >
          > /{Do su&bfolders=Yes^=+|_No^=}
          >
          > ~~~~~~~~~~~

          Jeffery,

          If, in fact, the ampersand you refer to is in one of the 'Open
          Directory...' clips in the 'Dirstuff' clipbook the answer is, 'it makes
          no difference to the execution of the clip.

          The ampersand is in that line to 'underscore' the letter following it
          when the choice is displayed in the clipbook wizard.

          ·············································
          ºvº SL_125 created_2008.05.04_10.01.00

          Newspaper HeadLine...
          • British Left Waffles on Falkland Islands
          € hrs € hsavage € pobox € com
        • ebbtidalflats
          Jeff, My guess is, that the wizrd mix of single = and doubles (==) is giving the error. Try replacing the single = before the choices with a double == .
          Message 4 of 6 , May 4 3:15 PM
          • 0 Attachment
            Jeff,


            My guess is, that the wizrd mix of single '=' and doubles (==) is
            giving the error.

            Try replacing the single '=' before the choices with a double '=='.


            Cheers,


            Eb




            --- In ntb-clips@yahoogroups.com, Jeff Scism <Scismgenie@...> wrote:
            >
            > This is one of Jody's Clips from "Directory Tools" clipbook
            >
            > I am getting a syntax error when I browse to the Path.
            >
            > What I am looking for is a inventory of JPGs and GIFs in the website
            > directory, so I can check to see if all are properly linked. (With FULL
            > path)
            >
            > Apparently the version changes since Jody wrote this have disabled it
            > somehow.
            >
            > /I note this line in the code, and wonder if the ampersand is supposed
            > to be there?
            >
            > /{Do su&bfolders=Yes^=+|_No^=}
            >
            > ~~~~~~~~~~~
            >
            > ; ^!Continue Gets image file names in whole directory. Continue?
            >
            > ^!ClearVariable %Drop%
            > ^!ClearVariable %AllNames%
            > ^!Jump 1
            >
            > ^!SetWizardLabel Browse..., Pull Down, or Type
            > <Begin LONG LINE>
            > ^!Set %Folder%=^?{(T=D)Browse: full path, end in
            > backslash=^$GetValue(DirStuff:Browse)$}; %Drop%=^?{Drop down: full
            path,
            > end in backslash=_If used, Browse is ignored, may enter path
            >
            manually^=1|^$GetValue(DirStuff:Path1)$|^$GetValue(DirStuff:Path2)$|^$GetValue(DirStuff:Path3)$|^$GetValue(DirStuff:Path4)$|^$GetValue(DirStuff:Path5)$|^$GetValue(DirStuff:Path6)$|^$GetValue(DirStuff:Path7)$|^$GetValue(DirStuff:Path8)$|^$GetValue(DirStuff:Path9)$};

            > %Subs%=^?{Do su&bfolders=Yes^=+|_No^=}; %Type%=^?{(H=10)File &Types,
            > wildcards OK: =_*.gif;*.jpg|All Files^=*.*}; %GetPath%=^?{==Get full
            > path^=1|_Filename only}; %SortRemoves%=^?{Remove dupilcates - think
            > mutipule folders - filename only==Yes|_No}; %Sort%=^?{Sort
            > by=Date|Name|Size|_Type|Unsorted}; %Rev%=^?{Reverse
            order=Yes^=rev|_No^=}
            > <END LONG LINE>
            >
            > ; Checks to see if Browse or Drop was used
            > ^!IfTrue ^%Drop% Skip
            > ^!Set %Folder%=^%Drop%
            >
            > ^!SetListDelimiter ^p
            > ^!SetArray
            %FileList%=^$GetFiles("^%Subs%^%Folder%";^%Type%;;^%Rev%^%Sort%)$
            > ^!Set %Count%=^%FileList0%
            > ^!Set %Index%=0
            >
            > :Loop
            > ^!Inc %Index%
            > ^!If ^%Index% > ^%Count% Show
            > ^!IfTrue ^%GetPath% Skip_2
            > ^!Set
            > %File%=^$GetName("^%FileList^%Index%%")$^$GetExt("^%FileList^%Index%%")$
            > ^!Goto Skip
            > ^!Set %File%="^%FileList^%Index%%"
            > ^!Append %AllNames%=^%File%^%nl%
            > ^!Goto Loop
            >
            > :Show
            > ^!Toolbar New document
            > ^!IfTrue ^%SortRemoves% Next else Skip_2
            > ^!InsertText ^$StrSort("^%AllNames%";0;1;1)$
            > ^!Goto Skip
            > ^!InsertText ^%AllNames%
            > ^!Jump 1
            >
            > ~~~~~~~~~~~
            >
            > --
            >
            >
            > Jeffery G. Scism, IBSSG
            > ~~
            >
            > "Proponents of each side are vying with determination to prove their
            ignorance is greater than the other."
            >
            > President Andrew Jackson, discussing a bill going through the US
            Congress.
            >
            >
            >
            > Visit http://ibssg.org/
            > For The Blacksheep website, MORE...
            >
            > Putnam County Indiana Biographies and Obituaries
            > http://ingenweb.org/inputnam/bios/
            >
            > Montgomery County Indiana Biographies and Obituaries
            > http://ingenweb.org/inmontgomery/bios/
            >
            > Fountain County Indiana Biographies and Obituaries
            > http://ingenweb.org/infountain/vitals/bios/
            >
          • hsavage
            ...
            Message 5 of 6 , May 5 6:21 AM
            • 0 Attachment
              Jeff Scism wrote:
              > This is one of Jody's Clips from "Directory Tools" clipbook
              >
              > I am getting a syntax error when I browse to the Path.
              >
              > What I am looking for is a inventory of JPGs and GIFs in the website
              > directory, so I can check to see if all are properly linked. (With FULL
              > path)
              >
              > ~~~~~~~~~~~
              >
              > ; ^!Continue Gets image file names in whole directory. Continue?
              >
              > ^!ClearVariable %Drop%
              > ^!ClearVariable %AllNames%
              > ^!Jump 1
              >
              > ^!SetWizardLabel Browse..., Pull Down, or Type

              >; <Begin LONG LINE>
              > ^!Set %Folder%=^?{(T=D)Browse: full path, end in
              > backslash=^$GetValue(DirStuff:Browse)$}; %Drop%=^?{Drop down: full path,
              > end in backslash=_If used, Browse is ignored, may enter path
              >
              manually^=1|^$GetValue(DirStuff:Path1)$|^$GetValue(DirStuff:Path2)$|^$GetValue(DirStuff:Path3)$|^$GetValue(DirStuff:Path4)$|^$GetValue(DirStuff:Path5)$|^$GetValue(DirStuff:Path6)$|^$GetValue(DirStuff:Path7)$|^$GetValue(DirStuff:Path8)$|^$GetValue(DirStuff:Path9)$};

              > %Subs%=^?{Do su&bfolders=Yes^=+|_No^=}; %Type%=^?{(H=10)File &Types,
              > wildcards OK: =_*.gif;*.jpg|All Files^=*.*}; %GetPath%=^?{==Get full
              > path^=1|_Filename only}; %SortRemoves%=^?{Remove dupilcates - think
              > mutipule folders - filename only==Yes|_No}; %Sort%=^?{Sort
              > by=Date|Name|Size|_Type|Unsorted}; %Rev%=^?{Reverse order=Yes^=rev|_No^=}
              >; <END LONG LINE>

              > ; Checks to see if Browse or Drop was used
              > ^!IfTrue ^%Drop% Skip
              > ^!Set %Folder%=^%Drop%
              >
              > ^!SetListDelimiter ^p
              > ^!SetArray
              %FileList%=^$GetFiles("^%Subs%^%Folder%";^%Type%;;^%Rev%^%Sort%)$
              > ^!Set %Count%=^%FileList0%
              > ^!Set %Index%=0
              >
              > :Loop
              > ^!Inc %Index%
              > ^!If ^%Index% > ^%Count% Show
              > ^!IfTrue ^%GetPath% Skip_2
              > ^!Set
              > %File%=^$GetName("^%FileList^%Index%%")$^$GetExt("^%FileList^%Index%%")$
              > ^!Goto Skip
              > ^!Set %File%="^%FileList^%Index%%"
              > ^!Append %AllNames%=^%File%^%nl%
              > ^!Goto Loop
              >
              > :Show
              > ^!Toolbar New document
              > ^!IfTrue ^%SortRemoves% Next else Skip_2
              > ^!InsertText ^$StrSort("^%AllNames%";0;1;1)$
              > ^!Goto Skip
              > ^!InsertText ^%AllNames%
              > ^!Jump 1
              >
              > ~~~~~~~~~~~

              Jeff,

              After copying the clip from your email I corrected the long line, first,
              by selecting it and using Ctrl+J to join it into one long line.

              Second, by adding double quotes around the 'Type' variable, as below.
              > ^!SetArray
              %FileList%=^$GetFiles("^%Subs%^%Folder%";^%Type%;;^%Rev%^%Sort%)$

              ^!SetArray
              %FileList%=^$GetFiles("^%Subs%^%Folder%";"^%Type%";;^%Rev%^%Sort%)$


              Third, by joining the line below.
              > ^!Set
              > %File%=^$GetName("^%FileList^%Index%%")$^$GetExt("^%FileList^%Index%%")$

              ^!Set
              %File%=^$GetName("^%FileList^%Index%%")$^$GetExt("^%FileList^%Index%%")$

              The line may have been wrapped by pasting into email.

              Also remove these lines or lead them with a semi-colon.

              ; <END LONG LINE>
              ; <END LONG LINE>

              The clip worked as expected following the above corrections.

              ·············································
              ºvº SL_126 created_2008.05.05_08.00.55

              Newspaper HeadLine...
              • British Union Finds Dwarfs in Short Supply
              € hrs € hsavage € pobox € com
            • Jeff Scism
              That was it, Jody wrote some fantastic clips, and some of them worked out of the box, but a couple are glitchy in the most recent version, Thanks for the
              Message 6 of 6 , May 5 7:00 AM
              • 0 Attachment
                That was it, Jody wrote some fantastic clips, and some of them worked
                out of the box, but a couple are "glitchy" in the most recent version,
                Thanks for the help.

                Jeff

                hsavage wrote:
                > Jeff Scism wrote:
                > > This is one of Jody's Clips from "Directory Tools" clipbook
                > >
                > > I am getting a syntax error when I browse to the Path.
                > >
                > > What I am looking for is a inventory of JPGs and GIFs in the website
                > > directory, so I can check to see if all are properly linked. (With FULL
                > > path)
                > >
                > > ~~~~~~~~~~~
                > >
                > > ; ^!Continue Gets image file names in whole directory. Continue?
                > >
                > > ^!ClearVariable %Drop%
                > > ^!ClearVariable %AllNames%
                > > ^!Jump 1
                > >
                > > ^!SetWizardLabel Browse..., Pull Down, or Type
                >
                > >; <Begin LONG LINE>
                > > ^!Set %Folder%=^?{(T=D)Browse: full path, end in
                > > backslash=^$GetValue(DirStuff:Browse)$}; %Drop%=^?{Drop down: full path,
                > > end in backslash=_If used, Browse is ignored, may enter path
                > >
                > manually^=1|^$GetValue(DirStuff:Path1)$|^$GetValue(DirStuff:Path2)$|^$GetValue(DirStuff:Path3)$|^$GetValue(DirStuff:Path4)$|^$GetValue(DirStuff:Path5)$|^$GetValue(DirStuff:Path6)$|^$GetValue(DirStuff:Path7)$|^$GetValue(DirStuff:Path8)$|^$GetValue(DirStuff:Path9)$};
                >
                > > %Subs%=^?{Do su&bfolders=Yes^=+|_No^=}; %Type%=^?{(H=10)File &Types,
                > > wildcards OK: =_*.gif;*.jpg|All Files^=*.*}; %GetPath%=^?{==Get full
                > > path^=1|_Filename only}; %SortRemoves%=^?{Remove dupilcates - think
                > > mutipule folders - filename only==Yes|_No}; %Sort%=^?{Sort
                > > by=Date|Name|Size|_Type|Unsorted}; %Rev%=^?{Reverse order=Yes^=rev|_No^=}
                > >; <END LONG LINE>
                >
                > > ; Checks to see if Browse or Drop was used
                > > ^!IfTrue ^%Drop% Skip
                > > ^!Set %Folder%=^%Drop%
                > >
                > > ^!SetListDelimiter ^p
                > > ^!SetArray
                > %FileList%=^$GetFiles("^%Subs%^%Folder%";^%Type%;;^%Rev%^%Sort%)$
                > > ^!Set %Count%=^%FileList0%
                > > ^!Set %Index%=0
                > >
                > > :Loop
                > > ^!Inc %Index%
                > > ^!If ^%Index% > ^%Count% Show
                > > ^!IfTrue ^%GetPath% Skip_2
                > > ^!Set
                > > %File%=^$GetName("^%FileList^%Index%%")$^$GetExt("^%FileList^%Index%%")$
                > > ^!Goto Skip
                > > ^!Set %File%="^%FileList^%Index%%"
                > > ^!Append %AllNames%=^%File%^%nl%
                > > ^!Goto Loop
                > >
                > > :Show
                > > ^!Toolbar New document
                > > ^!IfTrue ^%SortRemoves% Next else Skip_2
                > > ^!InsertText ^$StrSort("^%AllNames%";0;1;1)$
                > > ^!Goto Skip
                > > ^!InsertText ^%AllNames%
                > > ^!Jump 1
                > >
                > > ~~~~~~~~~~~
                >
                > Jeff,
                >
                > After copying the clip from your email I corrected the long line, first,
                > by selecting it and using Ctrl+J to join it into one long line.
                >
                > Second, by adding double quotes around the 'Type' variable, as below.
                > > ^!SetArray
                > %FileList%=^$GetFiles("^%Subs%^%Folder%";^%Type%;;^%Rev%^%Sort%)$
                >
                > ^!SetArray
                > %FileList%=^$GetFiles("^%Subs%^%Folder%";"^%Type%";;^%Rev%^%Sort%)$
                >
                >
                > Third, by joining the line below.
                > > ^!Set
                > > %File%=^$GetName("^%FileList^%Index%%")$^$GetExt("^%FileList^%Index%%")$
                >
                > ^!Set
                > %File%=^$GetName("^%FileList^%Index%%")$^$GetExt("^%FileList^%Index%%")$
                >
                > The line may have been wrapped by pasting into email.
                >
                > Also remove these lines or lead them with a semi-colon.
                >
                > ; <END LONG LINE>
                > ; <END LONG LINE>
                >
                > The clip worked as expected following the above corrections.
                >
                > ·············································
                > ºvº SL_126 created_2008.05.05_08.00.55
                >
                > Newspaper HeadLine...
                > • British Union Finds Dwarfs in Short Supply
                > € hrs € hsavage € pobox € com
                >
                >
                >
                > ------------------------------------
                >
                > Fookes Software: http://www.fookes.com/
                > NoteTab website: http://www.notetab.com/
                > NoteTab Discussion Lists: http://www.notetab.com/groups.php
                >
                > ***
                > Yahoo! Groups Links
                >
                >
                >
                >
                >


                --


                Jeffery G. Scism, IBSSG
                ~~

                "Proponents of each side are vying with determination to prove their ignorance is greater than the other."

                President Andrew Jackson, discussing a bill going through the US Congress.



                Visit http://ibssg.org/
                For The Blacksheep website, MORE...

                Putnam County Indiana Biographies and Obituaries
                http://ingenweb.org/inputnam/bios/

                Montgomery County Indiana Biographies and Obituaries
                http://ingenweb.org/inmontgomery/bios/

                Fountain County Indiana Biographies and Obituaries
                http://ingenweb.org/infountain/vitals/bios/
              Your message has been successfully submitted and would be delivered to recipients shortly.