jyates Posted February 16, 2005 Posted February 16, 2005 Hi there - we are a small company big into skype and we use FP7 for our contacts database. I am fairly new at all of this but have found that I can do some amazing scipting within the FP7 application. I now want to take it a step further and use the data held in the contacts database (namely the telephone number) and get it to automatically call the number using skype (www.skype.com) My issue is that I cannot define a parameter to pass to the applescript I have been using a select field and copy statement but then where do I paste it or set it as the passable parameter? This skpe code below works well but I just need the last bit to get it to work tell application "Skype" set call_string to "callto:" & PASTE get URL call_string end tell All help greatfully recieved Cheers Jonathan
jyates Posted February 16, 2005 Author Posted February 16, 2005 I have some more info - I reckon now I should be using a Calculated Applescript BUT there is no where in the known universe any reference naterial on how to perform a calulated apple script so If anyone can help me understand the Quote marks syntax etc then I would be very greatful "tell application "Skype" set call_string to " & "callto:" & Employees::Telephone & " get URL call_string end tell" Cheers Jonathan
h2o.be Posted February 16, 2005 Posted February 16, 2005 First, you have to get the data for within the FP7 database tell application "FileMaker Pro" to set phonenumber to cell "Telephone" of current record of layout "Employees" then, use your "Skype" script. tell application "Skype" to get URL "callto:" & phonenumber do not use the word "PASTE' : it is the name of a AppleScript command. In a ScriptMaker "perform AppleScript" statement you can put : set phonenumber to cell "Telephone" of current record of layout "Employees" tell application "Skype" to get URL "callto:" & phonenumber
jyates Posted February 16, 2005 Author Posted February 16, 2005 That works very well indeed thankyou I also have a main contact number in the layout Companies and have the following script which will not work for some reason. I presume this is because I am calling it from the Employees layout instead set phonenumber to cell "Main Telephone" of current record of layout "Companies" tell application "Skype" set call_string to "callto:" & phonenumber get url call_string end tell Cheers Jonathan
ChrisH Posted April 9, 2005 Posted April 9, 2005 I am trying to do a real simple script which is just to open Skype using a button but the script above is doing far more than I want to at this stage. Could someone please give me a little script that will just open Skype, I would really appreaciate it. Thanks.
ChrisH Posted April 9, 2005 Posted April 9, 2005 tell application "Skype" activate end tell After a few hours looking around I found what I needed at the Apple Forum for Applescripts
ChrisH Posted April 10, 2005 Posted April 10, 2005 This may be of particular interest to many which I found on a Skype Forum: "Please take a look at Jon's Phone Tool which handles all of the transformations for you from Address Book as well as from Entourage, Palm Desktop, Now Contact, FileMaker Pro, or just about any application and also provides many other useful features such as pausing iTunes, a call log, a call timer, and much more." (Shareware) http://homepage.mac.com/jonn8/jpt/
Recommended Posts
This topic is 7165 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now