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

Re: NSTask Help


  • Subject: Re: NSTask Help
  • From: Rhon Fitzwater <email@hidden>
  • Date: Mon, 13 Jan 2003 18:33:51 -0500

On Monday, January 13, 2003, at 03:32 PM, Rhon Fitzwater wrote:

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.
_______________________________________________
studentdev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/studentdev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
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.

References: 
 >NSTask Help (From: Rhon Fitzwater <email@hidden>)

  • Prev by Date: Is automatic reauthentication possible?
  • Next by Date: Re: Toolbar in Mail (was: Aqua Human Interface and Safari)
  • Previous by thread: Re: NSTask Help
  • Next by thread: Re: NSTask Help
  • Index(es):
    • Date
    • Thread