Re: Reveal in Find on Windows

2017-02-23 Thread Sannyasin Brahmanathaswami via use-livecode
HH wrote: Yes, you are right, the handler only opens the enclosing folder (or any path item of such a folder path). Actually that's my main use case… But now we have all options… thanks to all. nice to find that I can use launch for both Windows and Mac But has to have a slash on the

Re: Reveal in Find on Windows

2017-02-23 Thread hh via use-livecode
@Roger I adjusted (uncompletely) the name to the OP's handler name. Yes, you are right, the handler only opens the enclosing folder (or any path item of such a folder path). The purpose of my post was to second the "launch document" solution for folders and moreover to add the linux variant for

Re: Reveal in Find on Windows

2017-02-23 Thread Roger Eller via use-livecode
You get a star for effort. ;-p I tried your handler on Mac and Win, (not currently one of the 50 million Linux users). It opened the folder but did not select (reveal) the file or folder. The start of your command name didn't match the end, but that's okay. Community effort, right? ~Roger

Re: Reveal in Find on Windows

2017-02-23 Thread hh via use-livecode
> Richard G. wrote: > There are three major desktop OSes. :) Yes. And I'm _the only one_ in this thread who posted a handler that serves all these three ... http://lists.runrev.com/pipermail/use-livecode/2017-February/234858.html ___ use-livecode

Re: Reveal in Find on Windows

2017-02-23 Thread Roger Eller via use-livecode
50 Million!!! pffft Well, let's not forget about the Amiga then. I know there are still at least 2, because I still have mine. ;) ~Roger On Thu, Feb 23, 2017 at 10:52 AM, Richard Gaskin via use-livecode <

Re: Reveal in Find on Windows

2017-02-23 Thread Richard Gaskin via use-livecode
Mike Bonner wrote: Just remembered, you can bipass the shell call entirely.. launch document sRootFolder -- native lc command. Just need to do as I mentioned and be sure its a folder you're dealing with. (otherwise it will launch the apropos app to match the file type) It will probably work

Re: Reveal in Find on Windows

2017-02-23 Thread hh via use-livecode
The following works here on Mac/Win/Linux with LC 6/7/8/9. All my newer stacks have a menu (small square at top left) to do that for each path item of the current stack path. ## Opens the folder that contains the file pFolderFile command openWorkingFolder pFolderFile set itemdel to "/"

Re: Reveal in Find on Windows

2017-02-23 Thread Roger Eller via use-livecode
Launch document is good, but the OP wants to simply open a folder, and as stated in his first post, reveal or select a specific file. I'll try the handler on Windows when I get to the office. ~Roger On Feb 22, 2017 10:45 PM, "Mike Bonner via use-livecode" < use-livecode@lists.runrev.com> wrote:

Re: Reveal in Find on Windows

2017-02-22 Thread Mike Bonner via use-livecode
Just remembered, you can bipass the shell call entirely.. launch document sRootFolder -- native lc command. Just need to do as I mentioned and be sure its a folder you're dealing with. (otherwise it will launch the apropos app to match the file type) It will probably work for both platforms.

Re: Reveal in Find on Windows

2017-02-22 Thread Mike Bonner via use-livecode
I can't test it on mac, but 2 things. First, if your path is a folder but doesn't have the trailing / you'll end up in the wrong place so you might consider doing a check: if there is a file sRootFolder then delete item -1 of sRootFolder Then for the windows segment use "start": put ("start " &

Re: Reveal in Find on Windows

2017-02-22 Thread Sannyasin Brahmanathaswami via use-livecode
this is what I have so far… command openWorkingFolderInFinder pFolderFile set the itemdel to "/" put pFolderFile into sRootFolder delete item -1 of sRootFolder switch platform() case "MacOS" put ("open " & quote & sRootFolder & quote) into tShell

Re: Reveal in Find on Windows

2017-02-22 Thread Sannyasin Brahmanathaswami via use-livecode
OK I studied the doc here: https://support.microsoft.com/en-us/help/130510/command-line-switches-for-windows-explorer and actually the use cases are more often to open a folder but I don't have windows to test does this work to open a folder window on Win32? get shell (”explorer.exe

Re: Reveal in Find on Windows

2017-02-22 Thread Sannyasin Brahmanathaswami via use-livecode
Thanks Roger! On 2/22/17, 1:54 AM, "use-livecode on behalf of Roger Eller via use-livecode" wrote: get shell (”explorer.exe /select,c:\windows\system32\selected_file.txt") Source:

Re: Reveal in Find on Windows

2017-02-22 Thread Roger Eller via use-livecode
get shell (”explorer.exe /select,c:\windows\system32\selected_file.txt") Source: http://stackoverflow.com/questions/29970897/cmd-file-tasks-open-directory-and-select-file ~Roger On Feb 21, 2017 10:43 PM, "Sannyasin Brahmanathaswami via use-livecode" < use-livecode@lists.runrev.com> wrote: for