![]() |
Check Landline Dialler testing
Hi all I wonder if any of you can run this script for me. before I submit it.
Its a simple plugin to dial from address book using you internal modem and landline. It works great here, but I want to know if the speaker for modems is always set to ON as default, if not how to set it to ON when using the script. To use it save it into /Library/Address Book Plug-Ins/ plug your landline in (using a Modem cable, a normal cable may not work) open AB select a phone number label and select Dial using LandLine Please let me know if there are any other issues. I want to do this through Address Book. as a plugin so please do not let me know if there are apps out there already. Please do let me know if there is a way to access the internal modem to dial without going through Internet connect. or visible app, maybe using do shell and some CLI (in fact the more I think about it there should be a CLI way) Thanks in advance.... the code. Code:
using terms from application "Address Book" |
Quote:
/usr/sbin/chat /usr/bin/efax Reading their man pages shows that both of them can do dialing. The 'chat' program evidently comes via Fink. Another possibility might be to use the programmatic access to the serial port as illustrated in this Apple example: http://developer.apple.com/samplecod...ortSample.html and as bundled up in this Cocoa class: http://www.harmless.de/cocoa.html#serialport |
Thanks hayne,
i have got the efax dialling, took me a bit to get it to dial in tone instead of pulse. Still working with it, and may skip to the other options. p.s Happy New year to you and yours. |
Hi Hayne, thanks for your help
Working out eFax was the easy part where this script was concerned. The applescript waited to get a report back from the eFax shell script So I had a whale of a time trying to figure out ways of forcing it to let go. Any way here's the script which works. I think personally I like the other one more. ( mainly because you don't get a fax beep at the start ) Code:
global thePID |
Glad you've got it working.
I note that there is another current thread on the same topic: http://forums.macosxhints.com/showthread.php?p=260629 |
Cheers....
|
Hey mark,
looks like we're both working on the same thing at the same time. Check out my topic, which hayne posted a link to, for more tips... in particular, you can try this, which will dial the number, then automatically close efax without beeping and without having to kill the process manually: Code:
try |
Thanks , That works.
Although I think for me I prefer the dialogue Asking. One reason. I do not want to pick up an engaged line. One odd thing. I can run your script as: Code:
tryAlso note if you do not have DT (Dial Tone) in the do shell script, you will need to append it to the number: i.e DT02075551234 How well does it work when in the full applescript |
Using 'screen' to dial
Greetings!
After much research, experimentation and some help from a user group, I've managed to get the 'screen' command to work as a dialer. I modified Mark Hunte's excellent dialer script (thank you Mark!) to implement it. Although the script works well and reliably (iMac Core Duo), I'm concerned that my (almost total) lack of knowledge of Applescript has caused me to leave out something important. Could I therefore impose on the experts here to correct my changes? I'd much appreciate it! In Mark's "autodialer1_scpt.txt", I replaced the "land_out(phone_num)" call with a call to "dial_via_modem(phone_num)", which follows below. Code:
on dial_via_modem(phone_num)Ariel |
Another Poster in this thread drew my attention back to this thread.
Firstly Thank you arielfr for taking the time to look at and solve the screen dialing. Great job. The script below is the evolved result of this thread so far. Slight change to arielfr's script. 1, where you find the line do shell script "screen -d -m -S phone /dev/cu.usbmodem" Change cu.usbmodem to cu.modem if you use an internal modem. 2, I added the small change of atdt instead of atd Doing this insured the modem is setup for 'Tone' with just atd you will hear a lot of loud pops and clicks instead of a Dialing and ringing tone. installing Copy the script below and paste it into a New Script Editor Document (window). Click the 'Compile' button. Go to the 'File menu' and select 'Save' Press the keyboard keys shift+cmd+G which brings up the 'Go to Folder' menu option enter this line: ~/Library/Address Book Plug-Ins if you think you have a reason you can use then use this line instead. /Library/Address Book Plug-Ins/ Click the 'GO' Button. Give your script a name in the 'Save As' text box keeping the .scpt at the end. Click the 'Save' button. If Addressbook is running quit it, and then relaunch it. Now when you click a number Tab you will see the 'Dial using LandLine' option Good luck... Code:
(* use /dev/cu.usbmodem if you are using one |
well, guess i'm an unter-novice cause can't make it work... :(
ok well it ALMOST WORKS! i did as told and indeed have the modem dialing with landline option upon control-clicking AB. but when i dial the tone is occupied. what i forgot to mention is that i need a "0" prefix to have an outbound call... where should i correct this in the script? last (but not least), i live in Europe, so does this mean that other parameters for landline dialing must be taken into consideration? thanks in advance |
Show me the structure of a number:
i.e is it :002071231234 you need. Do you dial 0 wait for a tone and then 02071231234 explain ?? |
well, a national number would look like this:
0, (prefix for any outbound call) 04 70 30 55 70 thanks! |
Ok can not test this just yet.
but see if this works for you, where the line in the script is do shell script "screen -S phone -p 0 -X eval 'stuff \"atdt" & phone_num & "\\015\"'" change it to: do shell script "screen -S phone -p 0 -X eval 'stuff \"atdt0," & phone_num & "\\015\"'" Note the change is atdt0, |
well, it doesn't work and seems to block pagesender as it seems to continuously occupy the modem... :(
|
It works on my PB and another that a friend has with no tweaking needed.
Both G4 PPC (as in not intel ) PB's I suspect that part of the problem may be apps on your mac jostling for control of the modem. And your line setup. It may help if you give a run down of your complete set up. Cheers. |
well, running G4 pb 1,67 Ghz with 10.4.7. & 1,5 gigs of ram
using pagesender for sending faxes. No other app uses the modem |
Can you turn Pagesender off and try.
Also did you do the change I suggested. Give me step by step of what happens. |
Thanks!
Thank you, Mark Hunter and Arielfr.
Just followed your combined procedure, and it worked first time, all fine and dandy! Wonderful to be able to piggy back on your smarts! Cheeky follow up: do you have any idea why OS10.4 / G4 quicksilver won't pick up an incoming fax (all vanilla set up, System prefs control panel setup just as the 'help' pages tell you to). Sending is fine, so I know the line/modem etc works. |
Well, the script is wonderful! Thank you for building it. My problem is that most of my numbers do not have the necessary "1" in front of them. Is there something I can append to the script to have it check before dialing for the 1 and add it if necessary?
|
Quote:
if the number is example : 123456-1234 it will add 01 so the number will change to 011234561234 if the number is : 1123456-1234 it will add 0 so the number will change to 011234561234 if the number is : +1123456-1234 it will add 0 and remove the + so the number will change to 011234561234 if the number is : 01123456-1234 only the - will be removed, it will change to 011234561234 Code:
(* use /dev/cu.usbmodem if you are using one |
| All times are GMT -5. The time now is 06:03 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.