• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Scripting MegaPhone {was Re: not finding "help" helpful}
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Scripting MegaPhone {was Re: not finding "help" helpful}


  • Subject: Scripting MegaPhone {was Re: not finding "help" helpful}
  • From: vectormation <email@hidden>
  • Date: Sun, 11 Nov 2001 10:43:41 -0500

I don't have MegaPhone to test with, but try this :

tell application "MegaPhone 2.1"
dial "5551212"
call "5551212"
-- are both dial & call necessary, or will just one do?
end tell

-- pause script to complete dialing
delay 7
-- remember AppleScript is issuing commands to apps and does not
-- wait for them to complete before giving the next command

tell application "MegaPhone 2.1"
hang up
end tell


Good luck...

~Phi

>Thanks for the references..and encouragement, I'm getting frustrated.
>Here's an example:
>
>tell application "MegaPhone 2.1"
> dial "5551212"
> call "5551212"
>end tell
>
>
>this works in it's simplest form to dial my cell. But, after it dials,
>my home phone line
>is tied up infinitely. If I add the "hang up" command from megaphone's
>dictionary, it doesn't
>have time to dial. I've tried "time out" but I guess I'm not getting
>the syntax right. I don't
>get an error msg, instead it just doesn't dial.
>
>My biggest frustration is when I open up MegaPhone's dictionary, I have
>no idea what the hell
>the commands do!
>
>Such as:
>register dependency: The Register Dependency Apple Event requests this
>application to notify the sender application whenever a call appearance
>event meeting specified criteria takes place.
> register dependency reference
> [notifyee: reference]
> [properties : a list of list]
>
>Release Dependency: The Release Dependency Apple Event requests the
>server to release a pending dependency. Specify the unique notification
>ID returned by the Register Dependency event.
> Release Dependency anything
>
>Class telephone:
>Elements:
> 'DN ' by numeric index
>Properties:
> pName string [r/o]
> '????' [r/o]
>
>Class call: cCallApperance
>Properties:
> pID integer [r/o]
> pIncoming boolean [r/o]
> pAnswered boolean [r/o]
> pBusy boolean [r/o]
>
>etc etc...
>
>Thanks for all your assistance
>email@hidden
>_______________________________________________
>applescript-users mailing list
>email@hidden
>http://www.lists.apple.com/mailman/listinfo/applescript-users


  • Follow-Ups:
    • Re: Scripting MegaPhone {was Re: not finding "help" helpful}
      • From: Chris Nebel <email@hidden>
    • Re: Scripting MegaPhone {was Re: not finding "help" helpful}
      • From: "S. Slivan" <email@hidden>
  • Prev by Date: Re: not finding "help" helpful
  • Next by Date: Re: E-mail header triggers filemaker new record via applescript
  • Previous by thread: Re: E-mail header triggers filemaker new record via applescript
  • Next by thread: Re: Scripting MegaPhone {was Re: not finding "help" helpful}
  • Index(es):
    • Date
    • Thread