Dialling a connection with AppleScript and Automator

Discussion in 'Mac Programming' started by umiwangu, Jun 16, 2011.

  1. macrumors 6502

    Joined:
    Sep 4, 2006
    Messages:
    474
    Location:
    Malawi
    #1
    I want to automate the process of calling a number and then hanging up with my Mac. Everything already works, I just want to make it so it can run on it's own (through the night). I've created a connection in network preferences with the telephone number. When I dial the number, the phone rings, so it's all working.

    I've been trying to use automator to "watch me" create an action, but apparently this part of automator is quite buggy. After I create the action and start it, it just crashes the computer.

    Is there any way of doing this with a simple AppleScript? Such as, dial this connection, hang up after 30 seconds. And then using Automator to repeat the script?

    If I'm going in completely the wrong direction, feel free to point me in the right direction.

    Seth
     
  2. macrumors 65816

    jiminaus

    Joined:
    Dec 16, 2010
    Messages:
    1,448
    Location:
    Sydney
    #2
    Wirelessly posted (Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3_3 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J2 Safari/6533.18.5)

    Why?
     
  3. macrumors 6502

    Joined:
    Sep 4, 2006
    Messages:
    474
    Location:
    Malawi
    #3
    To wake guards up at night.


    Seriously.
     
  4. macrumors 6502

    Joined:
    Sep 4, 2006
    Messages:
    474
    Location:
    Malawi
    #4
    Anyone?
     

Share This Page