JavaScript will replace AppleScript ?, Applescript
Apple released the JavaScript for Automation Release Notes (preview version) on its official website, attracting wide attention from the community. The general consensus is that this is an experimental attempt to replace/supplement AppleScript.
The predecessor of AppleScript is Hypertalk, The scripting language used by Hypercard. Apple discovered that Hypertalk is similar to the English syntax and can be used to manipulate other software, so it developed AppleScript and became part of System 7. AppleScript also transits from Apple's classic operating system to Mac OS X and Cocoa architecture. Apple also released AppleScript Studio with Mac OS X 10.2, which can be used to create Cocoa software with image interfaces. Note: taken from Wiki
JavaScript has attracted the attention of many large companies by virtue of its simple syntax, good performance, ultra-Lightweight Framework, and extremely small Coupling Module systems.
Coupled with JavaScript's inherent openness and no copyright patent disputes, Apple has a very wide range of developers (open-source) groups, and has introduced it into the OS X platform to replace private AppleScript, some open platforms may also be considered to attract a wide range of third-party developers.
How can the prospects of javascript be replaced?
Nonsense
It's too early for RIA to win
In today's web development, js is still one of the most worthwhile Technologies
How to replace alert in javascript
<Input type = "text" id = "entry"/>
<Td id = "output"> </td>
Function reportErr (){
If (document. getElementById ("entry"). value = ""){
Var output = document. getElementById ("output ");
Output. innerHTML = "Koizumi grass NM! "; // Display Error Information
}
}
// Overwrite the window. alert () method
Window. alert = reportErr;
In this way, you can