Thanks TheQwerty, I will keep that in mind. For the script modification I'm working on, I'm using data extracted directly from the thumbnail cache dat2 file which specifies the paperfolder as "paper:Wallpaper\Ireland*240x240" so Don's "exists" change did help, in that all I had to do was extract the "paper: Wallpaper\Ireland" and determine if it still existed. Which was much easier than what I did before. I was converting the paper to the actual "txt " file...
Code: Select all
$paperfolder = "paper:Wallpaper\Ireland*240x240*c1a01c8bfdfbde00ec50d1e88f23e8e5";
$paperfolder = gettoken(gettoken($paperfolder, 1,"*"), 2, ":") . ".txt";
if (exists("<xypaper>\$paperfolder")) {...}
Though I hadn't looked at SC paperfolder to see if there would have been a simpler way "before" Don "exists" change. If I use SC "paperfolder" on a non-existing paperfolder, I get a "system can not find the specified file" error message which is understandable. For scripting purposes, instead of getting that error, maybe it would have been better if Don had returned an error code without the message. You could then use something like, "$p =paperfolder("Wallpaper\Ireland", , , "r") and if it returned a that error code, the paperfolder doesn't exist. Thanks again.