Shell or Launch or HELP!!!!

Brian Yennie briany at qldlearning.com
Sat Dec 20 19:50:43 CST 2003


On OS X, you want to use the "open" command with shell. Here's the 
beginning of the man page- I would get it working in Terminal.app. To 
get the entire manual, type "man open" in Terminal.app.

You want something like: get shell("open /folder/somefile")

HTH

NAME
      open - open files and directories

SYNOPSIS
      open [-a application] file ...

      open [-e] file ...

DESCRIPTION
      The open command opens a file (or a directory or URL), just as if 
you had
      double-clicked the file's icon. If no application name is 
specified, the
      default application as determined via LaunchServices is used to 
open the
      specified files.

      If the file is in the form of a URL, the file will be opened as a 
URL.

> Ok so here is my progress
>
> I put in an "if there is a file" and get "File Found" and still no 
> good. I tried Launch and get shell as in documents and nothing in OSX. 
> But if I double click  the file in OSX it launches VirtualPC(or brings 
> to front if open).
>
> Any help is great.
>
> on MouseUp
>   --get shell ("OPEN=ShellExe.exe ClickMe.bat")
>   if the environment is "Win32" then -- we are in Windows
>     try
>       get shell ("start ShellExe.exe")
>     catch lerror
>       beep
>     end try
>   else -- we are in OSX
>     try
>       --launch "/media/Demos/demos/PCPF109.exe"
>       --get shell ("/media/Demos/demos/PCPF109.exe")
>       --get shell ("/Applications/Microsoft Office X/Microsoft 
> PowerPoint")
>       if there is a file "media/Demos/demos/PCPF109.exe"
>       then
>         	answer "File Found"
>        	launch ("media/Demos/demos/PCPF109.exe")
> 	get shell ("media/Demos/demos/PCPF109.exe")
> 	get shell (binfile: "media/Demos/demos/PCPF109.exe")
>       else
>         beep
>         answer "The file was not found."
>       end if
>     catch lerror
>       beep
>     end try
>   end if
> end MouseUp
>
>
> On Dec 20, 2003, at 5:44 PM, Thomas J McGrath III wrote:
>
>> OK, I am now completely confused.
>>
>> I am building an OSX and WIN standalone and need to include a button 
>> with a link that launches an .exe file on XP and 2000 BUT launches 
>> the same .exe in VirtualPC if present in OSX.
>>
>> I have tried a bunch of things and can't get it figured out. Please 
>> help a desperate Revie.
>>
>> Here is what I tried so far:
>> on MouseUp
>>
>>   --get shell ("OPEN=ShellExe.exe ClickMe.bat") this was code I found 
>> in the AUTORUN.INF from the PC CD, also is ClickMe.bat and 
>> ShellExe.exe then there is the actual installers that I need which 
>> are - PCSB101.exe and PCPF109.exe
>>
>>   if the environment is "Win32" then -- we are in XP or 2000
>>     try
>>       get shell ("start ShellExe.exe") -- can't figure out how to 
>> open ClickMe.bat in the ShellExe.exe
>>     catch lerror
>>     beep
>>     end try
>>   else -- we are in OSX
>>     try
>>       --launch "/media/Demos/demos/PCPF109.exe" -- in OSX no luck
>>       --get shell ("/media/Demos/demos/PCPF109.exe") -- in OSX no Luck
>>       --get shell ("start /Applications/Microsoft Office X/Microsoft 
>> PowerPoint") -- now I am confused
>>     catch lerror
>>     beep
>>     end try
>>   end if
>> end MouseUp
>>
>> Thank you all I really need the help
>>
>> Tom
>>
>> Macintosh PowerBook G-4 OSX 10.3.1, OS 9.2.2, 1.25 GHz, 512MB RAM, 
>> Rev 2.1.2
>>
>>
>> Advanced Media Group
>> Thomas J McGrath III	• 2003 •	3mcgrath at adelphia.net
>> 220 Drake Road, Bethel Park, PA 15102
>>
>>
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>>
>
> Macintosh PowerBook G-4 OSX 10.3.1, OS 9.2.2, 1.25 GHz, 512MB RAM, Rev 
> 2.1.2
>
>
> Advanced Media Group
> Thomas J McGrath III	• 2003 •	3mcgrath at adelphia.net
> 220 Drake Road, Bethel Park, PA 15102
>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>



More information about the use-livecode mailing list