replacing fonts in Quark 4.11 style sheets

I would like to have a script check every 15 minutes if an application is running. Using a script from jj available on MS BBS my script writes as follow:

on idle
tell application “Finder”
if exists application process “XTension” then
else
launch application “XTension”
end if
return 30
end tell
end idle

Can somebody tell me if this script will do the work …?? I dont really understand how the script will auto-run itself ??? Do I have to put it somewhere in the System folder ?? Thanks in advance ??

Robert Lespérance
Québec, Canada

I tried it and it works … Multiple thanks to all of you for your presence and for taking the time … Thanks to jj, billary and greggo … What still puzzles me is what triggers the IDLE handler ???

I could not get trough the link suggested by billary …

Gratefully.

:smiley: :smiley: :smiley:

Thanks billaryclinton and greggo …

greggo is there many other subroutines available like IDLE ?? Do you know where they are stored for me to access their dictionnary ?? Thangs again.