Try this:
property scriptAppName : "Dialectic"
on handle_incoming_call_action(contact_name, contact_number,
phone_or_modem_name)
try
set n to "Name: " & contact_name & return
if contact_name = "" then set n to ""
set d to return & "Notes: " & phone_or_modem_name
if phone_or_modem_name = "" then set d to ""
set s to n & "Number: " & contact_number & d
tell application "GrowlHelperApp"
set myAllNotesList to {"incomingCall"}
register as application scriptAppName all notifications
myAllNotesList default notifications {"incomingCall"} icon of
application "Address Book"
notify with name "incomingCall" title "Incoming Call"
description s
& " calling" application name scriptAppName
end tell
end try
end handle_incoming_call_action
On Jul 14, 12:35 pm, Pez <[email protected]> wrote:
> Can someone please tell me how to modify this applescript so it sends the
> notification to Growl instead of Launchbar?
>
> Thanks.
>
> *************************************************************************
> on handle_incoming_call_action(contact_name, contact_number,
> phone_or_modem_name)
> try
> set n to "Name: " & contact_name & return
> if contact_name = "" then set n to ""
> set d to return & "Notes: " & phone_or_modem_name
> if phone_or_modem_name = "" then set d to ""
> set s to n & "Number: " & contact_number & d
> open location
> ("x-launchbar:large-type?title=Dialectic+Detected+Incoming+Call&string=" &
> (my encode_url(s)))
> end try
> end handle_incoming_call_action
>
> on encode_url(the_string)
> try
> tell application "Dialectic" to return call method "prepForURL" of
> the_string
> end try
> return the_string
> end encode_url
> *************************************************************************
--
You received this message because you are subscribed to the Google Groups
"Growl Discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/growldiscuss?hl=en.