PackageDescription: MacOSXApplicationCommandLine


Mac OSX Application Command Line

Last published: February 28, 2009 by 'tgriggs'

Defines 0 Classes
Extends 1 Classes


Adds the ability to read a commandline pattern for a deployed .app Application Bundle under OSX.

Usage

Place the command line string in a 'commandline' file next to your resource.im in the MyApplication.app/Contents/Resources/ directory. This code must be saved into the image, it cannot be loaded at startup time. With it loaded though, you can then place parcels and fileins in your Resources directory which can then be loaded via documented -pcl, -filein, -doit, etc. options.

Implementation

When OSX "launches" your app, the only thing that will show up in your 'CEnvironment commandLine' (which is used to invoke various CommandLineInterest options such as those listed above) is the VM and -psn_#_####### argument that is related to the process ID, or something like that. In the event this pattern is not matched, it simply reverts to the original implementation. It should be safe to use on any platform.