--- In [email protected], "swzoh" <[EMAIL PROTECTED]> wrote: > > Sorry, I wasn't clear enough. The above command produced an error only > as Cmd of PP's ContextMenu (and possibly, Scheduler). If I executed a > similar command in a script, then worked fine: > > _file_ = pprofolder > do(if(validpath _file_,"win.debug(_file_)"))
I think this is a good occasion to talk about a strange behavior of PP's Context Menu with Double-Byte characters. The reason why I added the seemingly redundant check in the command is: if a file name contains both single-byte ascii characters and double-byte CJK characters, then the ContextMenu item's commands are usually executed twice, as if two separate files were selected: the first one with the correct filepath, however, the second one with gabage characters, like ???(0x12), i.e., mostly unknown character symbols (0x3F) then FormFeed (0x12) as the last character. Sean
