Since Yosemite or thereabouts, it's been possible make an AS handler parameter optional simply by declaring a default value for it:
to Make_New_Terminal into termType : "Tab"
blah blah
end Make_New_Terminal
If, however, a handler has only one parameter, how does one call it without specifying a value for that parameter?
Make_New_Terminal
and
Make_New_Terminal()
of course both fail.
I'm guessing the answer is, as usual, "You can't." AS is, after all, Apple's starved and abandoned stepchild, left out in the cold to die like something out of Victor Hugo. Of course, again like a character out of Les Mis, there are always a dozen hideous urchin workarounds lacking hair, teeth, or dignity. We needn't go there.
Optimism being an intractable vice, I thought I'd ask, just the same.
with/without
, ormissing value
. Do you have something more specific in mind?