Launch does not work in Windows

Bob Sneidar bobsneidar at iotecdigital.com
Fri Nov 17 16:37:58 EST 2023


In case anyone cares, this works: 

   if the platform contains "WIN" then
      put "start" && quote & tTextEditorPath & quote && quote & tFilePath & quote into tShellCommand
      get shell(tShellCommand)
   else
      launch tFilePath with tTextEditorPath
   end if

Bob S


> On Nov 17, 2023, at 1:24 PM, Bob Sneidar via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Hi all. Given:
> 
> tTextEditorPath = "C:/Program Files/Windows NT/Accessories/wordpad.exe”
> tFilePath = "C:/Users/bobsneidar/Documents/Installs/The Whole Child/Cerritos/25528/Old Copier Settings.txt”
> 
> The command:
> 
> launch tFilePath with tTextEditorPath
> 
> Does NOT launch tFilePath with tTextEditorPath, but on the Macintosh OS, given:
> 
> tTextEditorPath = "/System/Applications/TextEdit.app”
> tFilePath = "/Users/bobsneidar/Documents/Installs/The Whole Child/Cerritos/25528/Old Copier Settings.txt”
> 
> The command DOES WORK! Any ides?? Is launch broken in Windows??
> 
> Bob S
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



More information about the use-livecode mailing list