Neither of those scripts work either to prevent the crash on a 27" 2009 iMac.
However, safe booting with the Shift key pressed DOES stop the App Store crash, suggesting this is an extension issue.
The following is from the first part of the crash report in Console after a crash:
Process: App Store [567]
Path: /Applications/App Store.app/Contents/MacOS/App Store
Identifier: com.apple.AppStore
Version: 3.0 (1)
Build Info: AppStoreJet-3000079000000~11
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: App Store [567]
User ID: 501
Date/Time: 2018-07-24 19:41:38.483 +0900
OS Version: Mac OS X 10.14 (18A336e)
Report Version: 12
Anonymous UUID: Removed from prying eyes
Time Awake Since Boot: 1300 seconds
System Integrity Protection: disabled
Crashed Thread: 4 Dispatch queue: com.apple.CoreAUC.monitorQueue
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [567]
VM Regions Near 0:
--> __TEXT 0000000104ce7000-000000010501b000 [ 3280K] r-x/rwx SM=COW /Applications/App Store.app/Contents/MacOS/App Store
Application Specific Information:
dyld3 mode
Thread 0:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff6b06da86 mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff6b06cf8c mach_msg + 60
2 com.apple.CoreFoundation 0x00007fff3de4da54 __CFRunLoopServiceMachPort + 336
3 com.apple.CoreFoundation 0x00007fff3de4cef1 __CFRunLoopRun + 1661
4 com.apple.CoreFoundation 0x00007fff3de4c65c CFRunLoopRunSpecific + 467
5 com.apple.HIToolbox 0x00007fff3d0d6829 RunCurrentEventLoopInMode + 293
6 com.apple.HIToolbox 0x00007fff3d0d6556 ReceiveNextEventCommon + 618
7 com.apple.HIToolbox 0x00007fff3d0d62d3 _BlockUntilNextEventMatchingListInModeWithFilter + 64
8 com.apple.AppKit 0x00007fff3b391643 _DPSNextEvent + 997
9 com.apple.AppKit 0x00007fff3badf0a2 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1362
10 com.apple.AppKit 0x00007fff3b386eca -[NSApplication run] + 699
11 com.apple.AppKit 0x00007fff3b356ec3 NSApplicationMain + 782
12 com.apple.AppStore 0x0000000104cec969 0x104ce7000 + 22889
13 libdyld.dylib 0x00007fff6af0ded4 0x7fff6af0d000 + 3796s
Try editing manually with "plist editor" (text editor is inapt for this scope)
or maybe try this adjusted script from your Mojave Terminal:
defaults write ~/Library/Containers/com.apple.AppStore/Data/Library/Preferences/com.apple.appstore.plist AutoPlayVideoSetting -string "off"
defaults write ~/Library/Containers/com.apple.AppStore/Data/Library/Preferences/com.apple.appstore.plist UserSetAutoPlayVideoSetting -bool true
edit:
I guarantee that giving both those scripts from your Mojave's Terminal, after a reboot New App Store won't crash more, unless you playback a video from there.
Thanks again to ASentientBot for discovered that tricky real path plist responsible file.