In fact I already have the routines for creating folders.
My dificulty is in reLaunching the app.
For example:
If I add a line like:
tell me to quit
The application will quit, but will require the user to double click
the application icon again to relaunch the app.
Is there a reserved word or routine to relaunch the application?
Bernardo
=================
On 28 Jul, 2005, at 10:17 AM, Philip Buckley wrote:
Immediate thought is simply to test for the existence of the folders
and files on launch and create them only if they are not already there
(which will only be on on the first launch), and then load the log
file.
So it would go something like (with hypothetical subroutines):
on launch
if not existFilesFolders() then
createFilesFolders()
end if
loadLogFile()
end launch
First launch - do the files exist? > no > create them > load log file
Subsequent launches - do the files exist? > yes > (do nothing)> load
log file
Philip
On 28 Jul 2005, at 13:42, Bernardo Hoehl wrote:
Hi List!
I have this little application that on the first launch creates a few
folders and files inside the user's application support folder.
Well, the fact is that I once run for the first time, I have to close
and open the application again, so that it loads a log file that I
have just created.
Can anyone give me a clue of how I could do this?
I imagine I could use another app to do this. But I think there could
be another simpler way of doing it.