Which is, of course, a much more sensible route altogether. I've tried -
unsuccessfully - to adapt your applescript. I don;t need the optional
reminder, just a task which reads "call <name>, <phone>.
Really? All you needed to do as change the word 'note' to 'task'. (I'm also
changing the variable to 'theTask' in all places just so it reads better,
but it would have worked anyway as 'theNote') I actually forgot to comment
out the 'open' part last time, so I'm doing it here. If you want it to open,
remove the "--" characters. This version makes a task with no due date and
no reminder.
P.S. I send scripts in HTML for a good reason: otherwise long lines break in
the email and would create errors when compiling. You'd have to know soe
AppleScript to know where to restore long lines by removing carriage
returns. On the other hand, I've discovered that people reading these
messages in the Google (or other) web browser have problems with scripts
containing non-ASCII (non-basic) characters like ‚ (is not equal), which
come out as commas, for example, at least in HTML, since the browser is
using Windows character format, and also break the script. So I'm trying to
rememver to always use the more verbose English alternatives like 'is not
equal to'. I may need to be reminded occasionally. Anyway, you're all better
off using Entourage or another newsreader, not Google: your messages and the
replies will appear within a min ute or so of being sent, not 12 hours or
so.
tell application "Microsoft Entourage"
try
set theSelection to selection
if class of theSelection is not list then error number -128
on error
beep
display dialog "You can only run this script on selected
contact(s)." buttons {"Cancel"} default button 1 with icon 0
return
end try
repeat with i from 1 to (count theSelection)
repeat 1 times
set theContact to item i of theSelection
if class of theContact is not contact then exit repeat -- 1
times
set theName to name of theContact
set thePhone to business phone number of theContact
if thePhone = "" then set thePhone to home phone number of
theContact
set theText to "Call " & theName & ", " & thePhone
set {theCategories, theProjects} to theContact's {category,
project list}
set theTask to make new task with properties {name:theName,
content:theText, category:theCategories, project list:theProjects}
link theTask to theContact
--open theTask
end repeat
end repeat
end tell
--
Paul Berkowitz
MVP MacOffice
Entourage FAQ Page: <
http://www.entourage.mvps.org/faq/index.html>
AppleScripts for Entourage: <
http://macscripter.net/scriptbuilders/>
Please "Reply To Newsgroup" to reply to this message. Emails will be
ignored.
PLEASE always state which version of Microsoft Office you are using -
**2004**, X or 2001. It's often impossible to answer your questions
otherwise.