I am trying to launch packaged applications (that is what they are called, right? They are the applications where if you control click on them is says Show Package contents). But the code I am using (carbon code, not cocoa) only launches normal applications. Here is a snipit of my code:
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>
Str255 myString;
LaunchParamBlockRec myLaunchParams;
FSSpec mySpec;
FindFolder(0x8000, 'favs', false, &myVRef, &myDirID);
c2pstrcpy( myString, myVec[menuItem-<font color = blue>1</font>].c_str());
FSMakeFSSpec(myVRef, myDirID, (<font color = green>const</font> <font color = green>unsigned</font> <font color = green>char</font> *)myString, &mySpec);
myLaunchParams.launchBlockID = extendedBlock;
myLaunchParams.launchEPBLength = extendedBlockLen;
myLaunchParams.launchFileFlags = <font color = blue>0</font>;
myLaunchParams.launchControlFlags = launchContinue + launchNoFileFlags;
myLaunchParams.launchAppSpec = &mySpec;
myLaunchParams.launchAppParameters = <font color = green>nil</font>;
LaunchApplication(&myLaunchParams);
</font>[/code]
I am betting there is a cleaner way of doing this, but if not, please let me know how to add to this packaged application launching.
[ 06-22-2001: Message edited by: kupan787 ]