• 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
applescript and objective c
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: applescript and objective c
      • From: Dustin Voss <email@hidden>
  • Prev by Date: NSOutlineView woos
  • Next by Date: Re: NSFilePromisePboardType
  • Previous by thread: NSOutlineView woos
  • Next by thread: Re: applescript and objective c
  • Index(es):
    • Date
    • Thread