How To Write To Standard Data Out Using Javascript Or Applescript

How To Write To Standard Data Out Using Javascript Or Applescript