Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Dialing - a more customizable route' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Dialing - a more customizable route
Authored by: Krioni on Apr 26, '02 02:50:55PM
You could modify the Script portion to make it even less work. No need to copy a field's value to the clipboard, and thus remove whatever was in it already (which you may have wanted). Instead, get the value right from the field itself. I also put the prefix into a variable. Now, to make this work with your database, all you need to do is put in the prefix and the phone field's name at the beginning of the script below
  -- change what's in the quotes below
property thePrefix: "YOUR PREFIX"
property thePhoneFieldName: "YOUR PHONE FIELD NAME"

tell application "FileMaker Pro"
  activate
  set theNumber to thePrefix & (cell thePhoneFieldName of current record)
  ignoring application responses
    tell application "Internet Connect" to connect¬
    configuration "Telephone" to telephone number thenumber
  end ignoring
  display dialog thenumber & return & "Dialing in Progress:   Disconnect?"¬
  buttons {"Disconnect"} default button 1 giving up after 10
  tell application "Internet Connect" to disconnect configuration "Telephone"
end tell



[ Reply to This | # ]
Dialing - a more customizable route
Authored by: jamesellissteven on Mar 26, '04 04:36:21AM

This didn't work for me - I got a message from Internet Connect saying:

"The Connection has failed because you have not entered a telephone number"

I double checked and the field did contain a telephone number. Any ideas?



[ Reply to This | # ]
Dialing - a more customizable route
Authored by: Bmeador on Apr 04, '04 05:41:44PM

I got the message that "The connection has failed because you have not entered a telephone number".

By the way, what would the script look like if I just wanted to dial the phone number through the speakers?

Thanks



[ Reply to This | # ]
Panther AppleScript bug
Authored by: sreubart on Aug 11, '04 03:07:43PM

There's just one problem with this--it doesn't work in Panther. Last year I wrote a RealBASIC program to let my users easily select from a list of our ISP's access numbers. It then uses AppleScript to send the number over to Internet Connect for dialing.

This worked beautifully in Jaguar, but broke in Panther. For some reason Panther has the telephone number field (and a couple of others) in Internet Connect set as read-only, so you can't put any values into that field. So it complains that you haven't entered a phone number.

I've found a couple of other people who have had the same problem, so I reported it to Apple's bug reporting system 3 months ago. It's still in the "open/verify" status, so at least it appears that they are testing a fix. I hope I don't have to wait for Tiger to see it fixed!



[ Reply to This | # ]