Hi Guys,
I’m trying to display a continuous output of a button action in a label. Here’s an example of my script:
property theLabel1 : missing value -- connected to the label's text field
on thebuttonclicked_(aNotification)
theLabel1's setStringValue_("Hello There!" & do shell script "ls -l /volumes/")
end thebuttonclicked_
The script works as intended but I would like to display the do shell script “ls -l /volumes/” in the following line after hello there! I tried adding \n before the command but it’s not working. Appreciate some help on this.
Thank you in advance.
Model: MacBookPro 6,2
AppleScript: Version 2.10 (194)
Browser: Safari 537.36 OPR/54.0.2952.54
Operating System: Mac OS X (10.13 Developer Beta 3)