Scripting MegaPhone {was Re: not finding "help" helpful}
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