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

Help using NSAppleScript


  • Subject: Help using NSAppleScript
  • From: email@hidden
  • Date: Sun, 28 Dec 2008 23:04:11 +0000

I am new to Cocoa/Objective-C and new to the forum, so apologies if this is a newbie questions.

I am trying to use NSAppleScript from Objective-C to execute the following one liner, and covert the result into an NSRect:

"Tell application \"Finder\" to return (bounds of window of desktop)"

When I call the compileAndReturnError method of NSAppleScript it crashes the debugger. I also am not sure how to actually access the result of the NSAppleScript call once I get the script to run.

I would be grateful if someone can offer advice and/or a pointer in the right direction to getting this to work.

Thanks in Advance
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Help using NSAppleScript
      • From: Rob Keniger <email@hidden>
  • Prev by Date: SOAP Client - OpenSource - looking for supporting developpers
  • Next by Date: Re: Notification when NSPersistentDocument done loading model
  • Previous by thread: SOAP Client - OpenSource - looking for supporting developpers
  • Next by thread: Re: Help using NSAppleScript
  • Index(es):
    • Date
    • Thread