--- In [email protected], "lakeshoresurfer" <camice...@...> wrote:
>
> Hi all,
>
> I am not sure why, but many of my scripts are producing error
> messages ever since I updated to PP release 4915.
>
> Specifically my ClipCapture CL that is executed every time a clip
> is captured was running flawless and is now crashing every time I
> copy something.
>
> Has something fundamentally changed in terms of variable
> declaration etc. ?
>
> The error message is Invalid number, string or variable at :
>
> if (win.exename(mycliphan)=="ssss" and find
> (win.caption(window("firstwindow", "c=fvdv")), "Session fd") > -1) do
>
I can't reproduce an issue on this one; however I had never tried using a tab
between if and open paren. Possibly on the line defining mycliphan you have the
many spaces preceeding a line comment issue I identified below.
>
> I am also getting an error message when below sript is run at the
> if-line:
>
> local start = date.today // start date is today
> local prevBusDate
>
> prevBusDate = date.addDays(start, -1)
> if (date.weekday(prevBusDate)== 0) // 0
> = Sunday
> prevBusDate = date.addDays(prevBusDate, -2)
>
> prevBusDate = formatdate("MMddyyyy",prevBusDate)
>
>
code above seems to work if you eliminate the excessive spaces before your //
comments.
I only tried with 4915. I haven't had any problems with my scripts or
configuration, but something might have changed in connection with numerous
spaces and/or tabs in order to enable code crossing multiple lines.
Personally I always skip one space and use double semicolons to denote a
comment on the same line as other code.
Regards,
Sheri