On 12/18/01 2:36 PM, "Richard Shane" <[EMAIL PROTECTED]> wrote:
> In Entourage, I > highlight a contact and run the script. Entourage then creates error > message: > > "The variable shortcut is not defined." > > What do I need to do differently? You must have broken the very first line: --New Task (or event) from selected contact; assign to kbd shortcut into two: --New Task (or event) from selected contact; assign to kbd shortcut The double-dashes make the line "comments", not code (usually italics in Script Editor). Allowing the last word onto a new line turns it into code. Since it's not an official AppleScript keyword, it's a variable. A single variable on a line will not error in compiling (checking syntax) - although two such words in a row, if neither is a preposition or something else that happens to be a keyword, would have errored. but in run-time, you'll get an execution error because that "variable" has not been defined. (For good reason, since it's not actually part of the script.) Just put it back on the previous line where it belongs. You may have more lines like that: see if you can figure them out for yourself. -- Paul Berkowitz -- To unsubscribe: <mailto:[EMAIL PROTECTED]> To search the archives: <http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>
