[futurebasic] Launching files

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : November 2000 : Group Archive : Group : All Groups

From: Jim Lucas <jimlucas@...>
Date: Thu, 9 Nov 2000 08:23:01 -0600
I am new to the list. I have FutureBasic II that I use for my LC, LC II,
and Powerbook 180c. None of these, of course are power macs. I am a low
power programmer also, writing Hypercard stacks and little Basic programs
for stuff around my office.

I cannot figure out how to write code that will allow me to launch a
program from within a FutureBasic program. I want to have a screen pop up
that allows me to launch one or more files or programs from a list. For
instance, let's say I have these files:
	Monthly Newsletter template (file)
	News items (hypercard stack)
	Page fillers (hypercard stack)
	Daily Bulletin template (file)
	Calendar (program)
When I click on a button labeled "Bulletin" I want "Daily Bulletin
template" to open, along with "News items." When I click on a button
labeled "Newsletter," I want "Monthly Newsletter template,"News items," and
"Page fillers" to open. I can do this in Hypercard (and have) but it is not
as elegant an interface as I would like to make. I am working on a project
that would integrate many aspects of communications in my office into one
program. As it is now, I have a bunch of little programs, and this little
problem is holding me up.

I also want to know how I would store the addreses of those files in the
program itself in the resource fork or data fork. In other words, after
running it for the first time, the program will ask where each file is with
a file menu picker window, and then remember that location. I know I could
set up a preference file, but prefer to cut down on that sort of clutter.

I would appreciate a private answer to these questions. I have days and
days of digests backed up as it is. So, if you answer to the list (for some
other readers' sakes), I would appreciate a blind copy also sent to me.