dbTalk Databases Forums  

FMPro AppleScript to dial in Skype

comp.databases.filemaker comp.databases.filemaker


Discuss FMPro AppleScript to dial in Skype in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
nufin
 
Posts: n/a

Default FMPro AppleScript to dial in Skype - 08-18-2005 , 08:34 AM






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

Reply With Quote
  #2  
Old   
FP
 
Posts: n/a

Default Re: FMPro AppleScript to dial in Skype - 08-18-2005 , 11:54 AM






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.


Reply With Quote
  #3  
Old   
nufin
 
Posts: n/a

Default Re: FMPro AppleScript to dial in Skype - 08-18-2005 , 04:42 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:
Quote:
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

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.