• 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
Compiles But Doesn't Understand
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Compiles But Doesn't Understand


  • Subject: Compiles But Doesn't Understand
  • From: Jesse Shanks <email@hidden>
  • Date: Sun, 17 Nov 2013 08:42:31 -0800


I am having a frustrating problem with scripts with Objective-C. I am on MacOS 10.9

I paste this into a script:

set myString to current application's NSString's stringWithString_("Some text")

It compiles like this:

set myString to current application's NSString's stringWithString:"Some text"

when i run it I get:

error "NSString doesn’t understand the “stringWithString_” message." number -1708 from NSString

I feel like there is just simple something I am missing.

Thanks,

Jesse Shanks
email@hidden




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Compiles But Doesn't Understand
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Duplicated Message Content
  • Next by Date: Re: Compiles But Doesn't Understand
  • Previous by thread: Re: Duplicated Message Content
  • Next by thread: Re: Compiles But Doesn't Understand
  • Index(es):
    • Date
    • Thread