I have tried this line of code:
TabView's removeTabViewItem_(2)
this returns an error. Also I tried using the name of the tab in the () but no luck either. What should you do in applescript to remove a tab?
I have tried this line of code:
TabView's removeTabViewItem_(2)
this returns an error. Also I tried using the name of the tab in the () but no luck either. What should you do in applescript to remove a tab?
Hi,
the argument must be an NSTabViewItem object, not a name or index.
Try this (consider that indexes are zero-based)
TabView's removeTabViewItem_(TabView's tabViewItemAtIndex_(2))