FMPro AppleScript to dial in Skype

  • Follow


Hello,

I am using FMPro 7 and Skype, I would like to define an AppleScript to 
call directly a selected contact with Skype. I don't want to make 
copy/paste of the contact phone number anymore.

I defined a button for that wich perform a calculated AppleScript:

"tell application " & "\"" & "Skype" & "\"�" & "activate�"   &  "get 
URL"  & "\"" & "callto: GetAsNumber(Contact::Phone)" & "\"�"  &  "end tell"

However, Skype returns the following error message : Couldn't call to 
GetAsNumber(Contact::Phone). Invalid username or SkypeOut number.
It seems that the GetAsNb ... is not interpreted , I tried with expr, 
evaluation , but it did not help :-(
I am new with FMPro and AppleScript so any help will be greatly 
appreciated ...
Best Regards and thanks for reading,
Tof
0
Reply nufin 8/18/2005 1:34:59 PM

I don't know "Skype" but looking at what you typed your problem is that
the text "GetAsNumber(Contact::Phone)" is being passed to apple script
which doesn't know what to do with it.
I would suggest that you create a global text field, then set that
field to the exact apple script text that you want to execute eg.
tell application "Skype"
activate
get URL "callto:444-4444"
end tell

Now tell your FileMaker script to run the contents of the global field
as an apple script.

0
Reply FP 8/18/2005 4:54:47 PM


Hello again,

I tried the method from FP (with global field) but unfortunately it did 
not help anyway thanks for his help.
Then I searched on the web especially on the Filemaker site and found 
this solution:

"tell application " & "\"" & "Skype" & "\"�" & "activate�"   &  "get 
URL"  & "\"" & "callto:" &  Contact::Phone  & "\"�"  &  "end tell"

Now this is great then I can "skype" directly my customer from FMPro 
with a single click on a button  !

Best Regards,

Tof


nufin wrote:
> Hello,
> 
> I am using FMPro 7 and Skype, I would like to define an AppleScript to 
> call directly a selected contact with Skype. I don't want to make 
> copy/paste of the contact phone number anymore.
> 
> I defined a button for that wich perform a calculated AppleScript:
> 
> "tell application " & "\"" & "Skype" & "\"�" & "activate�"   &  "get 
> URL"  & "\"" & "callto: GetAsNumber(Contact::Phone)" & "\"�"  &  "end tell"
> 
> However, Skype returns the following error message : Couldn't call to 
> GetAsNumber(Contact::Phone). Invalid username or SkypeOut number.
> It seems that the GetAsNb ... is not interpreted , I tried with expr, 
> evaluation , but it did not help :-(
> I am new with FMPro and AppleScript so any help will be greatly 
> appreciated ...
> Best Regards and thanks for reading,
> Tof
0
Reply nufin 8/18/2005 9:42:09 PM

2 Replies
275 Views

(page loaded in 1.669 seconds)

Similiar Articles:




7/26/2012 11:31:49 AM


Reply: