• 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
[ASOC] returning by reference, and converting script objects to descriptors?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ASOC] returning by reference, and converting script objects to descriptors?


  • Subject: [ASOC] returning by reference, and converting script objects to descriptors?
  • From: has <email@hidden>
  • Date: Sat, 16 Jan 2016 09:30:51 +0000

Couple of Shane/Chris questions:

Does ASOC support return-by-argument, e.g. for getting NSError**? I've tried passing `a reference to someProperty` but the referenced property never gets changed. Also, am I right that ASOC doesn't support block-based APIs at all, e.g. NSTask.terminationHandler?

Is there a way to convert a script object to an NSAppleEventDescriptor of typeScript? (Other than packing it into an AppleEvent and sending it to a custom-installed AE handler, which is a chore.) Alternatively, is there any way to get the OSAID of a script object after it crosses the ASOC bridge, allowing it to be directly manipulated using OSAKit APIs? (I need a way to do stuff like call OSADisplay to get the source-code representation of any AS value.)

Ta,

has
_______________________________________________
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: [ASOC] returning by reference, and converting script objects to descriptors?
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Handlers in a variable
  • Next by Date: Re: [ASOC] returning by reference, and converting script objects to descriptors?
  • Previous by thread: Good language UX != rocket science [was: Re: Handlers in a variable]
  • Next by thread: Re: [ASOC] returning by reference, and converting script objects to descriptors?
  • Index(es):
    • Date
    • Thread