Re: NSTask Help
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>) |