'cp' function + AppleScript