Hi, I’m rewritting a script that sorts by two criteria with
sortedArrayUsingDescriptors (initially written as a “quick” response to a DEVONthink user’s question). The old version needed the criteria and whether it should sort ascending/descending written into the source - which of course was not very user friendly …
I now figured I can ask for the criteria on runtime and evaluate the resulting strings by using
NSAppleScript which works fine - but I’ve no idea how to ask for user input in a nice way.
choose from list dialogs would be fine but one can only change the
cancel button's name - and not its function … (the idea was to use it for
Sort descending), so that can’t be used I’m afraid.
I guess there’s no way other than building a custom dialog and if that’s necessary then I’d like to know whether it’s possible to show two “choose from lists” side by side plus ascending/descending radio buttons and where to begin