看板 MAC 關於我們 聯絡資訊
眾所週知,skype沒有暫停鍵可儲存,所以無法儲存分機號碼。 於是我用最下方這個applescript來打中華電信隨身碼(需要暫停鍵)。 其中1111111222222是隨身碼帳密, 而??????????是目的號碼,逗號,就是暫停幾秒。 首先開automator,選service, 上方「service receives selected」選no input(in「any application」), 左上方尋找applescript,開啟,把下方這個applescript貼上去。 存檔。 以後便可在任何程式下拉選單Services裡看到你存的檔, 點擊執行後就可以看到對話框跳出,輸入目的號碼,就能打電話了。 on run {input, parameters} display dialog "destination number" default answer "" set destination_number to text returned of result set phone_number to "0800-080-991" set dtmf to "1111111222222,,,," & destination_number & "#" tell application "Skype" set active_call to send command "CALL " & phone_number script name "" set skype_call_id to word 2 of active_call delay 10 set bridge to "ALTER CALL " & skype_call_id & " DTMF " repeat with tone in the characters of dtmf if tone contains "," then delay 2 else send command bridge & " " & tone script name "s2" delay 0.2 end if end repeat end tell end run -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 1.163.180.131 ※ 文章網址: https://www.ptt.cc/bbs/MAC/M.1444667888.A.750.html
mc29014226: 推一下 10/13 07:11
※ 編輯: ballII (193.107.85.47), 10/13/2015 18:51:25