applescript and objective c
applescript and objective c
- Subject: applescript and objective c
- From: "Martha I. Espinosa" <email@hidden>
- Date: Fri, 17 Dec 2004 08:44:57 -0700
Hi,
I created a cocoa application and have an applescript being called at
the beginning to do some metrics gathering. It displays a dialog box
with the quit button. The problem is that when I click on quit the
applescript quits but the application still launches...
Any suggestions?
NSURL *url=[NSURL fileURLWithPath: [[[NSBundle mainBundle]
resourcePath]
stringByAppendingPathComponent:@"some.applescript"] ];
NSAppleScript* script=[[NSAppleScript alloc]
initWithContentsOfURL:url error:nil];
[script executeAndReturnError:nil];
[theWindow makeKeyAndOrderFront:nil];
[script release];
Thanks in advance
-ME
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden