Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set cdImage to "destkop/cdImage.jpg"
- theUsername = "foo"
- thePassword = "bar"
- serverPath to "https://webserver.com/repo/img/"
- mount volume theServer as user name theUsername with password thePassword
- delay 1
- tell application "Finder"
- duplicate file cdImage to folder (theServer & "/")
- end tell
- tell application "Finder"
- duplicate (quoted form of cdImage) to (quoted form of theServer)
- end tell
- do shell script "cp -a " & (quoted form of cdImage) & " " & (quoted form of (theServer & "/"))
- tell application "System Events" to duplicate file cdImage to theServer
Add Comment
Please, Sign In to add comment