• 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
NSTask Help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTask Help


  • Subject: NSTask Help
  • From: Rhon Fitzwater <email@hidden>
  • Date: Mon, 13 Jan 2003 15:32:43 -0500

Hi all,

I don't have much knowledge on how to get an NSTask working or Obj-C in
general. I need my code to execute a perl script, and then an
applescript.

Note: The location of the perl script will eventually be in
/Contents/Resources/main.pl of the built program.

I looked at some documentation, but dont understand all of it. I was
hoping that someone out there could help me out with the code.

Here is what I have so far (there is a lot more code that works now,
but this is where the perl and applescripts need to get executed):

- (void) performLogoutIfAppropriate
{
if (![self isPreview] && countdownSecs <= 0)
{
// Code to execute perl script needs to go here (NSTask???)
// Code to execute applescript: tell application "loginwindow" to
<<event aevtrlgo>>
}
return;
}

What do I have to add to the code above to get that to work? I'll take
any help I can get. Thanks in advance.

-Rhon Fitzwater
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: NSTask Help
      • From: Nathan Day <email@hidden>
    • Re: NSTask Help
      • From: Rhon Fitzwater <email@hidden>
    • Re: NSTask Help
      • From: Scott Anguish <email@hidden>
  • Prev by Date: Re: Module unlinking
  • Next by Date: Fwd: new release of GNUstep Renaissance
  • Previous by thread: Re: Returning applescript results from Cocoa
  • Next by thread: Re: NSTask Help
  • Index(es):
    • Date
    • Thread