Re: Help in creating a Start Up item in Panther
Re: Help in creating a Start Up item in Panther
- Subject: Re: Help in creating a Start Up item in Panther
- From: Martin Orpen <email@hidden>
- Date: Wed, 11 May 2005 20:14:02 +0100
on 11/5/05 15:31, Bernardo Hoehl at email@hidden wrote:
> I have an applescript saved as an application that I want to have it running
> before the users log in.
Hi Bernard
I've used a different method to launch apps and mount servers during login.
I'm sitting on a train at the moment, so can't give you a definitive answer
as to whether this will work, but my notes suggest that this might be worth
a try:
1. I wrote a script called MountVolume and saved it in /Applications as an
app (but any application will work the same way).
2. I used the Property List Editor to create a plist like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Command</key>
<string>/Applications/MountVolume</string>
<key>OnDemand</key>
<false/>
<key>ServiceName</key>
<string>com.idea-digital.mountserver</string>
</dict>
</plist>
3. I called this plist "AutoMount.plist" and saved it to the desktop.
4. I then copied this file to the folder:
/etc/mach_init_per_user.d/
(If you use a shell tool like pico, you could combine points 2,3 & 4)
This runs the app and then mounts the server every time that user logs in.
Likewise, I could have the plist open specific applications for that user
etc.
This is better than using scripts that launch applications only on reboot if
you have a mult-user environment. I'm pretty sure that there are O'Reilly
articles that cover this method, so you should be able to find a better
workthrough by Googling.
On the subject of blocking services it is often better to block some
services from your router. But I've tried doing that with Limewire and found
it very difficult as it is designed to quickly opens ports over a massive
range :-(
Killing the application is often easier. Or if you can afford it it might be
worth purchasing Remote Desktop and have that monitor all the Macs on your
network. It lists the active apps on all machines and you can simply take
control, quit and delete the application.
Good luck.
--
Martin Orpen
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden