What's new
This release of AppleScript includes several new features, which are described briefly here. To learn more about the new features, see the AppleScript Web site: www.apple.com/applescript System requirement This release of AppleScript, version 1.5.5, requires Mac OS 9.1 or later. It will not work with previous versions of the Mac OS. Mac OS X support This version of AppleScript includes new support for Mac OS X:
Controlling remote applications using TCP/IP addressing In addition to using AppleTalk names to identify computers, a script can control applications on other computers using a TCP/IP address. For example: tell application "Finder" of machine "eppc://127.200.126.44" You can also use the DNS name of the computer: tell application "Finder" of machine "eppc://lab.mycompany.com" You must know the TCP/IP address or DNS name for the computer. You cannot browse the network to locate it. The Using Terms From command The Using Terms From command lets you specify an application for terminology that's different from the target application of the Tell commands within the Using Terms From block. This command lets you develop and compile scripts when the actual application isn't available or you can't connect to a remote application. Here's a partial example: using terms from application "Finder" tell application remote-Finder end using terms from AppleScript compiles the statements within the Using Terms From block using the Finder without changing the target application for the Tell block. You can nest Tell and Using Terms From blocks within each other. If the Using Terms From block is within a Tell block, AppleScript uses terms from the target specified by the Tell block. Improved Unicode text support AppleScript now converts Unicode text returned from applications to International text and displays the results using any installed multilingual script system. AppleScript can convert text that contains more than one script system. For example, you can convert text that contains English, Cyrillic, and Japanese into Unicode text, then back to International text. Scripts can also compare Unicode text values to test if they are equal. Support for large files The Info For command correctly reports the size of files, folders, and disks larger than 2 GB. Info For command Busy Status property The Info For command has a Busy Status property that returns True if the file specified by the command is in use. Rounding option The Round command (in Standard Additions) now has the "as taught in school" parameter that rounds fractions that are exactly .5 to the next highest integer. Here's an example: round 0.5 rounding as taught in school Without the parameter, the Round command rounds to the nearest even integer. Keychain Access support You can use the Mount Volume command to mount an AFP (AppleShare) server volume and omit the password, if the password to the server and volume is in Keychain Access. This allows you to mount network volumes without including password information in your script. Folder Action terminology changes The "action number" and "action name" properties of the Remove Actions From and Edit Actions Of commands (in the Folder Actions dictionary) are now "using action number" and "using action name." DOS and UNIX text support This release of AppleScript can detect paragraph breaks in text from DOS and UNIX systems.
|
||||||||||||||
Table of contents |