OS X: Modem dialing applescript in Filemaker Pro
OS X: Modem dialing applescript in Filemaker Pro
- Subject: OS X: Modem dialing applescript in Filemaker Pro
- From: Dan Belfiori <email@hidden>
- Date: Thu, 14 Feb 2002 06:38:00 -0800
Since switching to OS X I've lost the ability to dial out of my Filemaker
Pro address book (No Internal modem listed in FMP4 and dial not available in
OSX in FMP5).
After some searching I've found the following method to use the internal
modem to dial. Has anyone found a better solution?
This script is embedded in an FMP script step "Run AppleScript"
set thenumber to cell "gphone" of current record
--"gphone" is a FMP cell which contains the phone number to be dialed
ignoring application responses
tell application "Internet Connect" to connect configuration "Internal
Modem" to telephone number thenumber
end ignoring
display dialog thenumber & return & ,
"Dialing in Progress: Disconnect?" buttons {"Disconnect"} ,
default button 1 ,
giving up after 20 --automatic disconnect in 20 seconds
tell application "Internet Connect" to disconnect
OR
The script can be tested externally (run from scripteditor) if a tell
statement is added to the first line.
And the filemaker database with phone number in cell is open and frontmost
in filemaker.
tell application "FileMaker Pro",
to set thenumber to cell "Cell_Name?" of current record
ignoring application responses
tell application "Internet Connect",
to connect configuration "Internal Modem" to telephone number thenumber
end ignoring
display dialog thenumber & return & ,
"Dialing in Progress: Disconnect?" buttons {"Disconnect"} ,
default button 1 ,
giving up after 20 --automatic disconnect in 20 seconds
tell application "Internet Connect"
disconnect
end tell
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.