Why does the result of this script only appear in ‘Source’ view and not ‘Best’ view?
Is that supposed to happen?
EDIT: The result is ‘times,’, but it only appears in ‘Source’ view (nothing in AEPrint either, I just noticed).
use AppleScript version "2.4" -- Yosemite (10.10) or later use framework "Foundation" use scripting additions # classes, constants, and enums used property NSString : a reference to current application's NSString set sourceString to "It was the best of times, it was the worst of times." set aString to NSString's stringWithString:sourceString set splitString to " " set aList to ((NSString's stringWithString:aString)'s componentsSeparatedByString:splitString) as list aList's item 6 as text