Scheduling an application function/event

  • Hey there,

    Im building an application that requires scheduled events.
    I was hoping to build these events right into osx - so the user
    didn't have to have the app running all the time to 'catch' these
    events/schedules.

    Is there a way of doing this?

    Cheers, and thanks for all your help in advance.

    _/Az.
    Send instant messages to your online friends http://au.messenger.yahoo.com
  • Am 14.10.2005 um 15:32 schrieb Aaron Wallis:
    > Im building an application that requires scheduled events.
    > I was hoping to build these events right into osx - so the user
    > didn't have to have the app running all the time to 'catch' these
    > events/schedules.
    >
    > Is there a way of doing this?

      Check out the following things:

        launchd
        cron
        iCal (it can run AppleScripts etc. and you could integrate with
    that)
        background-only applications (NSUIElement, NSBgOnly plist flags)
        Kernel extensions
        The Darwin source code

    I can't give you any more precise plans because you've not been
    precise on what you actually want to do either.

    Cheers,
    -- M. Uli Kusterer
    http://www.zathras.de
  • Hi Uli,

    Thanks for the help - basically im building a custom backup solution
    for the company I work for. And I need to allow the administrators to
    schedule particular events.
    I would prefer not to use iCal - but rather something in the system.

    as an example, heres some psuedocode:
    [ app ]
    User creates backup plan
    backup schedule saved to database/datastore
    schedule added to system for processing
    ---------------------------------------------
    [ system ]
    when schedule date & time is met
    launch app and tell it to process backup plan X.
    app - close when complete or display log

    Any suggestions on which system would be best to use for this?

    Cheers & thanks !

    On 15/10/2005, at 12:49 AM, Uli Kusterer wrote:

    > Am 14.10.2005 um 15:32 schrieb Aaron Wallis:
    >
    >> Im building an application that requires scheduled events.
    >> I was hoping to build these events right into osx - so the user
    >> didn't have to have the app running all the time to 'catch' these
    >> events/schedules.
    >>
    >> Is there a way of doing this?
    >>
    >
    > Check out the following things:
    >
    > launchd
    > cron
    > iCal (it can run AppleScripts etc. and you could integrate with
    > that)
    > background-only applications (NSUIElement, NSBgOnly plist flags)
    > Kernel extensions
    > The Darwin source code
    >
    > I can't give you any more precise plans because you've not been
    > precise on what you actually want to do either.
    >
    > Cheers,
    > -- M. Uli Kusterer
    > http://www.zathras.de
    >
    >
    >

    Send instant messages to your online friends http://au.messenger.yahoo.com
  • For a Mac-like way to schedule events, please take a look at a little
    application I publish called Script Timer. It's main purpose is to
    schedule AppleScript and other kinds of scripts, but it can easily
    schedule your application to run at the times you want it to do
    something.

    Regards,

    Don

    At 12:03 PM -0700 2005/10/14, <cocoa-dev-request...> wrote:
    >
    > Am 14.10.2005 um 15:32 schrieb Aaron Wallis:
    >> Im building an application that requires scheduled events.
    >> I was hoping to build these events right into osx - so the user
    >> didn't have to have the app running all the time to 'catch' these
    >> events/schedules.
    >>
    >> Is there a way of doing this?
    >
    > Check out the following things:
    >
    > launchd
    > cron
    > iCal (it can run AppleScripts etc. and you could integrate with
    > that)
    > background-only applications (NSUIElement, NSBgOnly plist flags)
    > Kernel extensions
    > The Darwin source code
    >
    > I can't give you any more precise plans because you've not been
    > precise on what you actually want to do either.
    >
    > Cheers,
    > -- M. Uli Kusterer

    --
    Donald S. Hall, Ph.D.
    Apps & More Software Design, Inc.
    <don...>
    http://www.appsandmore.com
  • Okay, I would suggest LaunchD, though I admit I know almost nothing
    about it so it may not be appropriate.  But it seems like it was
    designed for this purpose.  Of course, it is 10.4+.

    Niko

    On Oct 15, 2005, at 1:28 AM, Aaron Wallis wrote:

    > Hi Uli,
    >
    > Thanks for the help - basically im building a custom backup
    > solution for the company I work for. And I need to allow the
    > administrators to schedule particular events.
    > I would prefer not to use iCal - but rather something in the system.
    >
    > as an example, heres some psuedocode:
    > [ app ]
    > User creates backup plan
    > backup schedule saved to database/datastore
    > schedule added to system for processing
    > ---------------------------------------------
    > [ system ]
    > when schedule date & time is met
    > launch app and tell it to process backup plan X.
    > app - close when complete or display log
    >
    > Any suggestions on which system would be best to use for this?
    >
    > Cheers & thanks !
    >
    > On 15/10/2005, at 12:49 AM, Uli Kusterer wrote:
    >
    >
    >> Am 14.10.2005 um 15:32 schrieb Aaron Wallis:
    >>
    >>
    >>> Im building an application that requires scheduled events.
    >>> I was hoping to build these events right into osx - so the user
    >>> didn't have to have the app running all the time to 'catch' these
    >>> events/schedules.
    >>>
    >>> Is there a way of doing this?
    >>>
    >>>
    >>
    >> Check out the following things:
    >>
    >> launchd
    >> cron
    >> iCal (it can run AppleScripts etc. and you could integrate
    >> with that)
    >> background-only applications (NSUIElement, NSBgOnly plist flags)
    >> Kernel extensions
    >> The Darwin source code
    >>
    >> I can't give you any more precise plans because you've not been
    >> precise on what you actually want to do either.
    >>
    >> Cheers,
    >> -- M. Uli Kusterer
    >> http://www.zathras.de
    >>
    >>
    >>
    >>
    >
    > Send instant messages to your online friends http://
    > au.messenger.yahoo.com_______________________________________________
    > Do not post admin requests to the list. They will be ignored.
    > Cocoa-dev mailing list      (<Cocoa-dev...>)
    > Help/Unsubscribe/Update your Subscription:
    > http://lists.apple.com/mailman/options/cocoa-dev/<niko...>
    >
    > This email sent to <niko...>
    >
previous month october 2005 next month
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
Go to today