Okay the script is:
It works fine until when I hit yes that the copy was successful.SkyDrive doesn't start and an error pops up, but then after the error pops up SkyDrive starts. So it has me kind of puzzled because it does work but it just needs the error to pop up first?
the error is:
error "SkyDrive got an error: AppleEvent timed out." number -1712
Any help would be greatly appreciated!
Code:
tell application "SkyDrive"
quit
end tell
set the_button to button returned of (display dialog "Did Skydrive close?" buttons {"Yes", "No"} default button 1)
if the_button is "Yes" then tell application "Terminal"
activate
do script "cp -av /Users/osx/Desktop/test /Users/osx/Desktop/untitled folder"
end tell
if the_button is "No" then display dialog "Please Try Again"
delay 2
set button_two to button returned of (display dialog "Was the copy successful?" buttons {"Yes", "No"} default button 1)
if button_two is "Yes" then tell application "SkyDrive"
activate
end tell
if button_two is "No" then display dialog "Please Try Again"
It works fine until when I hit yes that the copy was successful.SkyDrive doesn't start and an error pops up, but then after the error pops up SkyDrive starts. So it has me kind of puzzled because it does work but it just needs the error to pop up first?
the error is:
error "SkyDrive got an error: AppleEvent timed out." number -1712
Any help would be greatly appreciated!
Last edited: