Jeff Weeks
7 discussion posts
I have been using the following script for a long time to remove double spaces and white space at the beginning and end of lines. I think after a recent update Clipboard Fusion now says that the script is invalid. Does someone have an updated script or can they fix this one?
using System;
using System.Text.RegularExpressions;
public static class ClipboardFusionHelper
{
public static string ProcessText(string text)
{
Regex regex = new Regex(@" {2,}");
return regex.Replace(text, " ").Trim();
}
}
Jan 22, 2020 (modified Jan 22, 2020)
•
#1
Jeff Weeks
7 discussion posts
I think I have figured it out. Its a permissions issue on the folder that CF is trying to write to during execution. Compile Failed.
Line 0: Unexpected error creating debug information file 'c:\Users\6000\AppData\Local\Temp\0y4zlr34.PDB' -- 'c:\Users\6000\AppData\Local\Temp\0y4zlr34.pdb: Access is denied.
[System.Exception]
The script is fine. For now consider this resolved.
Jan 22, 2020 (modified Jan 22, 2020)
•
#2
Jeff Weeks
7 discussion posts
I figured it out. I had to go to C:\Program Files (x86)\ClipboardFusion and in the properties for the clipboardfusion.exe set Run as Administrator for all users. Now everything works again. I hope this helps someone else in the future.