Guest User

Untitled

a guest
Dec 6th, 2017
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. set cdImage to "destkop/cdImage.jpg"
  2.  
  3. theUsername = "foo"
  4. thePassword = "bar"
  5. serverPath to "https://webserver.com/repo/img/"
  6. mount volume theServer as user name theUsername with password thePassword
  7. delay 1
  8.  
  9. tell application "Finder"
  10. duplicate file cdImage to folder (theServer & "/")
  11. end tell
  12.  
  13. tell application "Finder"
  14. duplicate (quoted form of cdImage) to (quoted form of theServer)
  15. end tell
  16.  
  17. do shell script "cp -a " & (quoted form of cdImage) & " " & (quoted form of (theServer & "/"))
  18.  
  19. tell application "System Events" to duplicate file cdImage to theServer
Add Comment
Please, Sign In to add comment