[comp.sys.next] Open Panels and Shell scripts

kamisett@enuxha.eas.asu.edu (Krishnaprasad Kamisetty) (07/13/90)

I wonder if someone could mail me or post as to how I can use the filename
I get from the [openedpanel filename] in a shell script that I need to run
by a system call..

My code (Hi Erica !!) looks like this:

-----------------

#import "SimpleOpen.h"

@implementation SimpleOpen

-performOpen:sender
{
	id my_open;
	const char * *my_file;

	/* create and run appkit open panel.
	   Exit if user presses cancel   */
	   
	   my_open = [OpenPanel new];
	   [my_open allowMultipleFiles:NO]
	   if (! [my_open runModalForDirectory:"~/Remote" file:NULL types:NULL] )
	          return self;
	   
	   my_file = [my_open filename];
}

The very last line may not mean anything..at all..But reflects my ability to
program in obj-c etc... 

Thanking all those kind Internet souls, in anticipation..

Kris

-- 
-Krishnaprasad
Kris Kamisetty,CIM Systems Research,Dept. Of IE, ASU         
e-mail: kamisett@enuxha.eas.asu.edu
USmail: ERC 552,CIM Center,ASU,Tempe,AZ 85287