Hi Richard,
OK no HEX editing, Skype accepts in the current Mac version 2.7.0.33 a
proper wav file generated with the Applescript say command and then
converted under applescript control to a wav file.
Skype wants the posix path and not the HFS path in the applescript.
The applescript to test this with the echo123 service of Skype is:
(adapted from your original post)
------------------------------------
set myInPutFile to path to desktop
set myInPutFile to myInPutFile & "myRecording.wav" as text
set myInPutFile to the POSIX path of myInPutFile
tell application "Skype"
activate
set theScript to "My script"
set theStartingTime to current date
send command "CALL echo123" script name theScript --replace echo123
with another phone number
set theCallID to the second word of the result
set myResult to "OK"
set theStatus to "nothing"
-- break the repeat up, first until inprogress
repeat until (((current date) - theStartingTime) > 60) or (theStatus
is equal to "INPROGRESS")
set theCommand to "GET CALL " & theCallID & " STATUS"
send command theCommand script name theScript
set theStatus to the last word of the result
display dialog the result giving up after 1
end repeat
-- give some time for the introduction and up to the tone
delay 10
-- now send the command once (before it was sent repeatedly
if theStatus is equal to "INPROGRESS" then
set theCommand to "ALTER CALL " & theCallID & " SET_INPUT
file=" & quote & myInPutFile & quote
send command theCommand script name theScript
end if
-- now wait until the call is finished in another repeat loop
set theStartingTime to current date
repeat until (((current date) - theStartingTime) > 60) or (theStatus
is equal to "FINISHED")
set theCommand to "GET CALL " & theCallID & " STATUS"
send command theCommand script name theScript
set theStatus to the last word of the result
display dialog the result giving up after 1
end repeat
end tell
-----------------------
watch out for line breaks
may be it is of interest for other scripters too.
well at least it works withe echo123, whatever route you will go with your
app.
regards
Bernd
--
View this message in context:
http://www.nabble.com/bad-interaction-between-%22random%22-and-%22word%22--tp22901630p23029551.html
Sent from the Revolution - User mailing list archive at Nabble.com.
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution