• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Help in creating a Start Up item in Panther
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help in creating a Start Up item in Panther


  • Subject: Re: Help in creating a Start Up item in Panther
  • From: Gnarlodious <email@hidden>
  • Date: Wed, 11 May 2005 10:03:22 -0600

Probably the best way to do it is with cron, using the CronniX interface:
http://h5197.serverkompetenz.net/cronnix/

You would set CronniX to run your script every 5 minutes or so between
certain hours. I have a similar setup here.

You might also consider blocking the ports those apps use, you wouldn't even
need to run Applescript. You would just tell Cronnix to run a shell command.

However, if you block ports with a shell script you can't simultaneously run
the GUI firewall in the Sharing prefanel.

-- Gnarlie


Entity Bernardo Hoehl spoke thus:

> 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

References: 
 >Help in creating a Start Up item in Panther (From: Bernardo Hoehl <email@hidden>)

  • Prev by Date: Re: System Events Info
  • Next by Date: Re: Non-character keystrokes
  • Previous by thread: Re: Help in creating a Start Up item in Panther
  • Next by thread: Re: Help in creating a Start Up item in Panther
  • Index(es):
    • Date
    • Thread