Page 1 of 1

Folder creation error since upgrading to 21.20

Posted: 03 Nov 2020 04:48
by bababarghi
Hi All,

I have been using script below for a while but it throws an error since the recent upgrade and I can't my get my head around the causing issue.

Upon activation, it creates a folder (folder name gets asked via INPUT window) and then goes to the created folder.

Code: Select all

$mystr = ". ".<clipboard>;copytext(new(input("Folder Name", ,$mystr ), "dir"));
  $mystr = <clipboard>;
  $path=<clipboard>;
  $mystr = $mystr."\Email.pdf";
  $mystr = RegexReplace("$mystr", "\r?\n?", "");
  copytext $mystr;
  goto $path;
Here is the error msg:

Image

The path length is around 160 characters.

Re: Folder creation error since upgrading to 21.20

Posted: 03 Nov 2020 07:21
by highend
And what's exactly the content of your clipboard before you execute that script?

Re: Folder creation error since upgrading to 21.20

Posted: 05 Nov 2020 02:32
by bababarghi
highend wrote: ↑03 Nov 2020 07:21 And what's exactly the content of your clipboard before you execute that script?
A 20 characters long string (supposedly my new folder's name)

Re: Folder creation error since upgrading to 21.20

Posted: 05 Nov 2020 06:11
by highend
Last try... Show the content (as a string, not a screenshot) of the line (of your "Input" window) before you finally hit the "OK" button

Re: Folder creation error since upgrading to 21.20

Posted: 10 Nov 2020 05:23
by bababarghi
Problem solved. The issue wasn't upgrading to v21.20

I had removed the leading space in the script lines. Adding them back, the script is working again.

Image