Pros:
Cons:
Use local variables: var %ajs 1 and var %ajd 1. You can also create an alias that opens the dialog: alias aj.open { if (!$dialog(aj)) dialog -md aj aj } <- That\'s just an example. Sometimes it\'s easier to type the alias. On average, this is a really nice snippet. Good job.