Re: [Swift] best way to support 'keyword' args, symbolic values, show values as literals?

2015-06-16 Thread Shane Stanley
On 17 Jun 2015, at 1:59 am, Dave wrote: > > I’m was about to add AppleScript Handling to my App and I’ll need to do a lot > of NSAppleEventDescriptor fishing, is there any advance documentation > relating to this? Look in the NSAppleEventDescriptor header file -- it should be self-explanatory.

Re: [Swift] best way to support 'keyword' args, symbolic values, show values as literals?

2015-06-16 Thread Dave
> Thanks to Apple actioning Radar tickets 19169736 > , 19169791 > , and 18944184 > , there are now modern, fully > supported NSAppleEventDescriptor APIs arriving in 10.11 that w

Re: [Swift] best way to support 'keyword' args, symbolic values, show values as literals?

2015-06-16 Thread has
On 15/06/2015 18:39, Quincey Morris wrote: On Jun 15, 2015, at 10:17 , has > wrote: the goal is to enable a user to print an object specifier and be able to copy-and-paste that straight into another script - i.e. `-description` should always return a string tha

Re: [Swift] best way to support 'keyword' args, symbolic values, show values as literals?

2015-06-15 Thread Quincey Morris
On Jun 15, 2015, at 10:17 , has wrote: > > the goal is to enable a user to print an object specifier and be able to > copy-and-paste that straight into another script - i.e. `-description` > should always return a string that represents valid Swift code I dunno about #1 or #2, but for #3 look

[Swift] best way to support 'keyword' args, symbolic values, show values as literals?

2015-06-15 Thread has
Hi folks, Some of the old uns here might remember that many years ago I wrote a nice little library named appscript which allowed you to control "AppleScriptable" applications from Python/Ruby/ObjC (and, unlike the alternatives, actually didn't suck), allowing you to write code like this (Pyt