— create a new AppleScript instancesetanOSALanguageInstancetoOSALanguageInstance’slanguageInstanceWithLanguage:(OSALanguage’sdefaultLanguage())

— make script and run it from the new instancesettheSourceto"display dialog ＼"Hello world＼""settheScripttoOSAScript’salloc()’s initWithSource:theSourcefromURL:(missing value) languageInstance:anOSALanguageInstanceusingStorageOptions:(OSANull)set {theResult, theError} totheScript’scompileAndReturnError:(reference)