JavaScript will replace AppleScript ?, Applescript

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.