TITLE
    AppleScript Extras: Read Me
Article ID:
Created:
Modified:
58364
5/11/99
5/11/99

TOPIC

    This article comprises the Read Me for AppleScript CD ROM Extras. This software was released by Apple on May 10, 1999 and is available for downloading from Apple Software Updates Online. Please use the following URL to access the article directly: http://asu.info.apple.com/swupdates.nsf/artnum/n11402 .

    Description :

    This is the AppleScript CD ROM Extras included with the Mac OS 8.6 CD. It contains a script menu and example scripts in the AppleScript CD ROM Extras folder. More information, examples, and tutorials are also available from the AppleScript Web site at: http://www.apple.com/applescript/


DISCUSSION

    AppleScript CD ROM Extras

    About AppleScript CD ROM Extras

    To aid you in using and learning AppleScript, we've included a script menu and example scripts in the AppleScript CD ROM Extras folder.

    For more information about AppleScript, please use the online help system. To access AppleScript Help, switch to the desktop, choose Help Center from the Help menu, and then click the AppleScript Help link.

    More information, examples, and tutorials are also available from the AppleScript Web site at: http://www.apple.com/applescript/

    OSA Menu

    OSA Menu is a system extension written by Leonard Rosenthol which places a script scroll icon at the top right of the menu bar. When the scroll icon is clicked it will display a list of available scripts, including those used by the currently active application. Selecting a menu item will run the chosen script.

    OSA Menu is not an Apple product and Apple makes no guarantees as to its use. Please read the documentation in the OSA Menu Installer for instructions on its installation, use, and for information about technical support issues.

    iDo Script Scheduler

    Script Scheduler, from Sophisticated Circuits, Inc., lets you automatically run AppleScripts at any time you choose. You can use it to make your Macintosh perform tasks such as downloading e-mail every morning, or backing up your important data when you're not at the computer. You can use Script Scheduler to create multiple types of repeating "events". Each event can run any chosen AppleScript, and it can pass a line of parameters when the script is run. It is especially useful in systems which run unattended, such as servers, store demos and and information kiosks.

    Example Scripts

    Included in the More Sample Scripts folder are the following script collections, designed for use with OSA menu.

    To install these extra scripts:


      1. Locate and open the Scripts folder in the System folder

      2. Place the Universal Scripts folder, the Finder Scripts folder, and the Script Editor Scripts folder in the Scripts folder in the System folder.

      3. Close the Scripts folder and the System folder.


    Once placed into the Scripts folder, the example scripts will be accessible from the OSA Scripts menu.

    The following is a brief listing and description of the included scripts.

    Universal Scripts

    Located on the upper section of the script menu, these scripts will be available from within any application.

    Open Folder... This script will present a choose folder dialog from which you can select a folder to open on the desktop.

    Unmount/Eject All Disks This script will attempt to unmount and eject all non-local volumes.

    Finder Scripts

    Add Prefix/Suffix to Files, Add Prefix/Suffix to Folders These scripts can be used to add a prefix or suffix to the beginning or end of file or folder names. For example, you could choose to add .TXT to the end of every file in a folder of text files.

    Change Case of All Names This script can be used to change the case of every file name in a specified folder. For example, the file name: AppleScript Read Me could be converted to either upper case: APPLESCRIPT READ ME, or lower case: applescript read me.

    Info for Selected Items This script will display information about the selected files in the Finder. Information, including: size, file type, and creator code will be displayed for each selected item via successive dialogs.

    Replace Text in Item Names This script can be used to replace specified text in item names. For example: the text "image" can be replaced in all file names with "img" as in the file name: TEST IMAGE 1 would become: TEST IMG 1

    Size of Finder Selection This script will display the combined size of all the selected items in the Finder.

    Trim File Names This script can be used to trim text from the beginning or end of every file name in a folder. For example: you could choose to trim ".TIF" from every file name as in the file name: IMAGE1.TIF would be renamed to: IMAGE1

    Script Editor Scripts

    These scripts are a collection of sub-routines addressing common AppleScript tasks. When one of these script is run, a sub-routine is placed on the clipboard ready for you to paste into your script. Every script is editable and contains a description and example use within the script.

    ASCII Sort

    Change Case of Text

    Convert Number to Text

    Date Slug

    FilePath - Extract File Name

    FilePath - Parent Fldr Name

    FilePath - Parent Fldr Path

    Name Item

    Read File

    Return High/Low From List

    Round - Convert - Truncate

    Time Slug

    Write to File

    More Folder Actions Scripts

    The scripts in the More Folder Actions Scripts folder are for use with the new Folder Actions feature of System 8.5. Place the individual scripts contained in the More Folder Actions Scripts folder into the Folder Actions folder located in the Scripts folder in the System folder. Please refer to the Online Help System for information about using Folder Actions.

    add - add to activity log This Folder Action script will create a log file on the desktop containing information about the items placed into the attached folder.

    add - match parent label This Folder Action script will change the label of every added item to match the label of the attached folder.

    summarize added text files This Folder Action script will read every added text file and summarize its contents in three sentences. You can edit the script to change its parameters including the number of sentences used in the summary.


Document Information
Product Area: Apple Software
Category: AppleScript
Sub Category: General Topics

Copyright © 2000 Apple Computer, Inc. All rights reserved.