Help in creating a Start Up item in Panther
Help in creating a Start Up item in Panther
- Subject: Help in creating a Start Up item in Panther
- From: Bernardo Hoehl <email@hidden>
- Date: Wed, 11 May 2005 11:31:35 -0300
Hi List,
I have an applescript saved as an application that I want to have it running before the users log in.
I am trying to follow up this article from developer.apple.com:
http://developer.apple.com/documentation/MacOSX/Conceptual/BPSystemStartup/Articles/StartupItems.html
I need some help with the shell script executable, which I guess should look so:
+++++++++++++ shell script begins... ++++++++++++++
#!/bin/sh
. /etc/rc.common
open /Library/Scripts/MyScriptsFolder/NameofMyScript.app
++++++++++++++ shell script ends ++++++++++++++++
Is this correct?
In the StartUpParameters.plist file I have no clue what to include in the "Provides", "Requires" and "Uses" parameters...
At the bottom of this message you will find the applescript application, just in case you wonder.
( I am trying to prohibit users from using MSN messenger and Limewire during working hours)
I used Drop Script Backgrounder to hide the app's icon from appearing in the Dock...
Thank you for your kind attention,
Bernardo Höhl
Rio de Janeiro - Brazil
on idle
repeat while true
tell application "System Events"
if name of every process contains "MSN Messenger Daemon" or name of every process contains "Limewire" then
if time of (current date) > 28800 and time of (current date) < 64080 then -- from 08:00 to 17:48
if time of (current date) > 46800 and time of (current date) < 50400 then -- from 13:00 to 14:00
--do nothing, lunch time
else
try
tell application "MSN Messenger" to quit
tell application "LimeWire" to quit
end try
end if
end if
end if
end tell
return 20
end repeat
end idle _______________________________________________
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