APPLESCRIPT FAQ
1. What are AppleScripts?
AppleScript is a language created by Apple Computer and is used by the MacOS (Macintosh Operating System) to control the actions of scriptable applications and to transfer information between applications, or between computers, or between networks, or between you and the computer. To find out more about AppleScript visit Apple's New to AppleScript page.
2. How do I install Applescripts?
To install an AppleScript, all you have to do is drag the script to the "Script menu items" folder in the Outlook Express folder. If the application is open you must quit and re-launch OE to use the scripts. After you will see a little icon in the menu. This is where you can use your scripts.
note: on some 68k machines, the script menu is not supported. However, you can use OSAMenu. It gives you a system wide script menu that is hierarchical, is updated without having to re-launch OE, and you can assign keyboard combos.
3. How can I create Applescripts?
First you must have Apple's Script Editor which is available for free and is included with every MacOS. It is located in the "Apple Extras" folder. Then you must learn AppleScript. There are many books available on AppleScript. The following can be ordered from Amazon.com by clicking the hyper link. The last two are available from Apple Computer as PDF files (see the AppleScript Web site).
- AppleScript for Your Desktop and the Internet - (new)
- AppleScript for Dummies
- Applied Mac Scripting
- AppleScript Applications : Building Applications With Facespan and AppleScript
- AppleScript Language Guide (Apple Computer)
- AppleScript Scripting Additions Guide (Apple Computer)
4. How do I AppleScript an attachment to OE? (thanks Russ Alman)
property filename : "theFileName"
tell application "Finder"
activate
set varpath to the path to desktop
end tell
tell application "Outlook Express"
activate
set varFile to "" & varpath & filename
set theMsg to make new draft window with properties
{subject:"Prequalification Form", to recipients:"team@teamcorey.com";}
make file at theMsg with data file varFile
end tell
5. How do I assign Command Keys equivalents to AppleScripts?
Keyboard equivalents for menu items in the Script Menu can be defined by appending '\' followed by modifiers and the command key to the script filename.
Modifiers
|
shift
|
s |
option
|
o |
command
|
m |
control
|
c |
If no modifiers are specified, command is assumed. "F1" thru "F15" can be used for the function keys.
Examples
|
control-F
|
"Example Script \cF" |
command F
|
"Example Script \F" |
command-shift-F
|
"Example Script \smF" |
F12
|
"Example Script \F12" |
Outlook Express does not check for conflicts, and the results of conflicts will be random. Also, modifier keys are lower case and command keys are upper case.
© 1998-2000 by Omar Shahine
Outlook Express is © 1996-2000 by Microsoft Corporation
This page posted on with Adobe GoLive
|