realbasic-nug
[Top] [All Lists]

OSX , launch app with command-line parameters

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: OSX , launch app with command-line parameters
From: Michael Diehr <md03@xochi.com>
Date: Sat, 31 Jan 2009 16:34:32 -0800
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
Is it possible to launch a REALbasic app in OS X, and provide it with command-line parameters? This is a GUI App, so I can't use the ConsoleApp.Run(args()) parameter list.

In Win32 it's possible using this declare:

  // 
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/prothred_0mzp.asp
  // ALL VERSIONS

  #if TargetWin32
    Dim m as MemoryBlock, s as string
    Declare Function GetCommandLineA Lib "KERNEL32.DLL" () as Ptr
    m = GetCommandLineA()
    s = m.cstring(0)
    //Msgbox "The command line was:" + s
    return s
  #endif



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>