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

Re: [Clip] Bad syntax error

Expand Messages
  • hsavage
    ...
    Message 1 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 2 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.