Quickies

[categories] [index] [all (527)] [latest]

AppleScript
  1. s.txt

    on f(a, b)
        set l to {}
        set end of l to a+b
        set end of l to a*b
        return l -- { a+b, a*b }
    end f
    
    on run
        set x to 2
        set y to 3
        set result to f(x,y)
        log result
    end run
    

    run the script

    $ osascript s.txt
    5, 6
    
  2. log class of myVariable