Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Change OSX Terminal theme on the fly when you SSH. Parent comment
tell application "Terminal" set my_tab to first tab of first window get container of my_tab end tell
Or consider this. It changes the settings of the first tab of the first window to the first settings set. It works great:
tell application "Terminal" set current settings of first tab of first window to first settings set end tell
tell application "Terminal" set first_set to first settings set set current settings of first tab of first window to first_set end tell
tell application "Terminal" set first_set to a reference to first settings set set current settings of first tab of first window to first_set end tell
There are no comments on this comment yet.
Or consider this. It changes the settings of the first tab of the first window to the first settings set. It works great:
However, a trivial change that in any sane implementation would be exactly equivalent fails: Changing it slightly makes it work: AppleScript is the most frustrating language I've ever tried to work with because of things like this.