On or near 12/6/00 4:27 AM, R. Scott Ohlgren at [EMAIL PROTECTED]
observed:
> Allen,
>
> Great Journal script!
>
> When you say to �name ending with "\smJ" (Cmd-Shift-J)...�, how does that
> work? Do you actually place the \smJ in the name that shows up in the script
> name, and then this creates a keyboard shortcut? Is this how all scripts can
> be keyboarded?
Basically, yes. I just checked and for some reason, the information seems to
be lacking from the Entourage help file. Here is the text from the Outlook
Express help file, which is accurate but for the change of name (I have
corrected the error which said one should use forward slash, when the
correct character is backward slash):
The Script Menu
The Script menu is represented in the Outlook Express 5.0 menu bar by a
script icon. Once you have written and debugged your own scripts, you can
add them to the Outlook Express Script menu by saving them as compiled
scripts and then dragging them into the Script Menu Items subfolder of the
Outlook Express folder. The Script menu will be updated whenever items are
added to the folder (although it won�t update if an item is simply renamed),
and the items in the Script menu folder can be any sort of OSA script with
an �osas� file type. This includes Frontier scripts and even QuicKeys
scripts. Note that if you hold down the option key while opening a script on
the Script menu, it will be opened in the Script Editor for editing.
You can also create subfolders within the Script Menu Items folder. The
Script menu will display items in subfolders as hierarchical menus. There is
a limit of 14 such menus, however, and if there are too many, an error
dialog will be shown.
To launch a script that you have added to the Script menu, just choose the
script from the menu. Keyboard equivalents for menu items can be defined by
a backward slash ('\'), followed by modifiers. Modifiers can be 's' for
shift, 'o' for option, 'm' for command, or 'c' for control. If no modifiers
are specified, command is assumed. For example, �\cF� would be control+F,
�\F� would be command+F, and �\msF� would be command+shift+F. Outlook
Express does not check for conflicts, and the results of conflicts will be
undefined.
After a script is run, it will be saved to disk if it needs to be. For
example, if the script has a property that is modified by the script, it
needs to be saved to update the property value. For example:
property timesRun : 0
set timesRun to timesRun + 1
display dialog "I've been run " & timesRun & " times."
While running a script, Outlook Express 5.0 will let you switch to other
applications and will respond to update events. It will also continue
running threads. However, it will not respond to key pressing or keyboard
commands (these might be used to open modal dialogs, which could cause
problems).
By the way, in the absence of a scripting primer for Entourage (which is
supposedly in the works, and is promised by the help file), you can find a
lot of good information in the Outlook Express help file! Nearly everything
about OE scripting was carried over to Entourage. It might be a good idea
for me, or Paul, to post a copy of the OE scripting documentation on our web
sites. I haven't had time to upload much lately due to a severe problem with
my hard drive that ate most of my time for a week.
--
Peace,
Allen Watson <[EMAIL PROTECTED]> XNS name: =Allen Watson
A Mac family since 1984 <http://home.earthlink.net/~allenwatson/>
Applescripts for Outlook Express and Entourage:
<http://homepage.mac.com/allenwatson/>
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
To search the archives:
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>