In search of AppleScript or Cocoa Developer
Hi all. I am looking for either an AppleScript or a Cocoa developer.
I have a great idea for a program, i have the GUI, yet the only problem is that I am not that good at programming. I would love it if someone would want to be my partner for this project.
The practility for this app is great. It will periodically check to see if an App is up and if it is not, turn it on. The need for this is such if you are not near your server or your computer and you need a certain app on all the time, it will keep it up.
This is like that USB thing you plug in but nothing like that. Hopefully this program would not run down.
The other options are a daemon sorta thing or a prefernce pane.
Any takeres?
<img src="graemlins/smokin.gif" border="0" alt="[Chilling]" /> :cool:
I have a great idea for a program, i have the GUI, yet the only problem is that I am not that good at programming. I would love it if someone would want to be my partner for this project.
The practility for this app is great. It will periodically check to see if an App is up and if it is not, turn it on. The need for this is such if you are not near your server or your computer and you need a certain app on all the time, it will keep it up.
This is like that USB thing you plug in but nothing like that. Hopefully this program would not run down.
The other options are a daemon sorta thing or a prefernce pane.
Any takeres?
<img src="graemlins/smokin.gif" border="0" alt="[Chilling]" /> :cool:

Comments
#!/bin/sh
while [ 1 ]
do
/Applications/TextEdit.app/Contents/MacOS/TextEdit
done
</pre><hr></blockquote>
save this as a file, let's say, 'keepup'
then, make it executable:
chmod a+x keepup
And run it:
./keepup
Tada!
[ 05-11-2002: Message edited by: Mithras ]</p>
#!/bin/sh
while [ 1 ]
do
/Applications/TextEdit.app/Contents/MacOS/TextEdit
done
</pre><hr></blockquote>
save this as a file, let's say, 'keepup'
then, make it executable:
chmod a+x keepup
And run it:
./keepup
Tada!
[ 05-11-2002: Message edited by: Mithras ][/qb]<hr></blockquote>
Haha, that works, but you have to keep the terminal open the whole time. Once you close it. Its done
[ 05-12-2002: Message edited by: MacGP ]</p>
Thanks,
robo
check out versiontracker. they have all their controls in a system pref pane.
<strong>[code]
#!/bin/sh
while [ 1 ]
do
/Applications/TextEdit.app/Contents/MacOS/TextEdit
done
</pre><hr></blockquote>
save this as a file, let's say, 'keepup'
then, make it executable:
chmod a+x keepup
And run it:
./keepup
Tada!
[ 05-11-2002: Message edited by: Mithras ]</strong><hr></blockquote>
Haha, that works, but you have to keep the terminal open the whole time. Once you close it. Its done
[ 05-12-2002: Message edited by: MacGP ][/QB]<hr></blockquote>
No. ./keepup &
<strong>BTW - how do you tell the terminal to open the app in a particular directory.. ie. i want to use this to open F@H, but it has to be opened in it's own directory otherwise it doesn't know it's settings etc..
Thanks,
robo</strong><hr></blockquote>
robo: just add a 'cd' line to change directory:
#!/bin/sh
cd /path/to/F@H
while true
do
FoldingAtHomeCommand
done
also, if you want to make it spiffier,
(1) run it with a & on the end, as hekal noted, to run in the background.
(2) save it with a .command extension on the name so that you can double-click it from the finder
(3) or, make a StartupItem for it. (Look at an example file; they are pretty simple)
(4) or, make a little wrapper file for this one:
[code]
#!/bin/sh
/path/to/keepup &
</pre><hr></blockquote>
do the chmod a+x to this one. Save it in ~/Scripts
Then, download <a href="http://www.apple.com/applescript/macosx" target="_blank">ScriptMenu</a>, and you can run your keep-up script with a click in the menubar.
If you want to kill the keepup, you'd have to run ps uxw (or ps auxw if you ran it from startup) and find its process id. then type kill (pid) where (pid) is that number.
or, you can add this line after the #!/bin/sh:
[code]
echo $$ > ~/keepup.pid
</pre><hr></blockquote>
which copies its process id to a file in your home directory. Then, if you want to kill the keepup script, you just type
kill `cat ~/keepup.pid` in the Terminal.
hope that helps! have fun!