![]() Hold the Control key and then press the 1 key. Tip: You can also use the keyboard shortcut Control + 1 to open the format cells dialog box (after selecting the cells). The above steps would remove the comma from all the selected numbers. Uncheck the ‘Use 1000 Separator (,)’ option and specify how many decimal digits you want.In the Category list, select Number (if not selected already).In the Format Cells dialogue box, make sure the Number tab is selected.In the number group, click on the dialogue box launcher (the small slanted arrow icon at the bottom-right part of the group).Select the dataset (the one with the numbers).Suppose you have a dataset as shown below and you want to get rid of the commas from the numbers in column B. Since these commas are part of the formating and not the number itself, we need to edit the formatting to remove these commas from the numbers. due to LaunchBar escaping '#' with '%23' the script replaces '%23' in your number with '#' this should not be a problem since '%' is not a valid DTMF tone AFAIK.When working with numbers in Excel, you can apply various formats to the cells and the numbers would be displayed accordingly.You can see and change the values for all these pauses in the top of script. Additional commas will give a 2 sec delay. Thus "+123456789,1234#" will dial +123456789, wait 10 seconds for connection and then send 1234# as individual DTMF tones with a small pause in between. ',' is used as a pause character and as the start of DTMF tones.spaces are ok, but they are stripped out automatically otherwise Skype will not dial it.has to be in international format (i.e.The script assumes the following about phone numbers: My previous blog shows how to embed a script like this into a Service menu entry, and if you use another launcher you just need to read their docs for how they want the script formed and apply it similar to what is done above for Launch Bar and QuickSilver. How to configure QuickSilver to pick up the script is left as an exercise for the readers who have QuickSilver installed. ![]() To use the script as an action for QuickSilver simply remove the comments from the lower block mentioning QuickSilver. You can also simply add the above script to a directory that your LaunchBar scans for scripts and use it via "Tab" on items allowing you to use it on everything not just Address Book phone numbers. Skype should now start and dial the number.Use Launch Bar to find a contact's phone number and press Enter.Set "Phone Numbers" action to the file you saved in Step 1.Copy the above script and save it with Apple Script Editor in your favorite script location (I use DropBox to share scripts such as this between machines).Using terms from application "QuickSilver" Set AppleScript's text item delimiters to tid Set AppleScript's text item delimiters to t Send command bridge & " " & tone script name "s2" Repeat with tone in the characters of dtmf ![]() Repeat with dtmf in the items of dtmf_parts Set bridge to "ALTER CALL " & skype_call_id & " DTMF " Set skype_call_id to word 2 of active_call Set active_call to send command "CALL " & phone_number script name "s2" Set dtmf_parts to items 2 through -1 of parts Set num to replace_string(num, "%23", "#") (* replace %23 with # since launchBar seem to force encoding of numbers *) (* remove any spaces in the number otherwise Skype won't make the call *) Set num to (text ((count "tel:") + 1) thru -1 of num) Set pause_wait to 2 (* seconds to wait for a pause *) Set pause_char to "," (* character used to indicate a pause *) Set dtmf_wait to 0.2 (* seconds to wait between sending DTMF tones *) Set connect_wait to 10 (* seconds to wait before sending additional tones *) Now I've updated the script to be able to use directly from LaunchBar (or other launchers) as the dial action for contact book entries. I've been pretty happy with my previous Service Apple script to dial a specific conference call bridge, but as I started having to use more it got too annoying to add a script per specific numbers. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |