The fact that $\mathscr A(A,-):\mathscr A\to \textbf{Set}$ preserves $D$-indexed limits translates to $$\lim\mathscr A(A,D(-))\simeq \mathscr A(A,\lim D)$$
I'm trying to prove that the dualized version should be $$\lim \mathscr A(D(-),A)\simeq \mathscr A(\text{colim} D,A)$$ (it's not immediately obvious to me why we should have colimit on the RHS and why the order flipped compared to the first displayed equation). So in words, the dual statement says that $\mathscr A(-,A):\mathscr A^{op}\to \textbf {Set}$ preserves $D$-indexed limits. But I'm having trouble unraveling this. For, suppose $D:I\to \mathscr A$ is a diagram of shape $I$ on $\mathscr A$. "Preserves $D$-indexed limits" should mean that the image of the limit of $D$ under the given functor is isomorphic to the limit of the composite diagram. But in this case, the composite diagram is not defined (the domain of $\mathscr A(-,A) $ is not equal to the range of $D$). Of course one can consider, instead of $D$, a diagram $D':I\to\mathscr A^{op}$, but I thought officially $D$-indexed limit preservation means that limits of diagrams $D:I\to \mathscr A$ are preserved, so nothing entitles us to consider that $D'$ diagram. So my question is how to deal with this matter?
The statements say exactly the same, and it is not necessary to give a second proof. You know that if $D : I \to \mathcal{A}$ is a small diagram whose limit (in $\mathcal{A}$) exists, then $$\lim \mathcal{A}(A,D(-)) \cong \mathcal{A}(A,\lim(D)).$$ Hence, for any small diagram $D : I \to \mathcal{A}$, we can apply this to the dual diagram $D^{\mathrm{op}} : I^{\mathrm{op}} \to \mathcal{A}^{\mathrm{op}}$: If the limit of $D^{\mathrm{op}}$ exists (in $\mathcal{A}^{\mathrm{op}}$), then $$\lim \mathcal{A}^{\mathrm{op}}(A,D^{\mathrm{op}}(-)) \cong \mathcal{A}^{\mathrm{op}}(A,\lim(D^{\mathrm{op}}))).$$ Since $\mathcal{A}^{\mathrm{op}}(A,B) := \mathcal{A}(B,A)$, $D^{\mathrm{op}}(i) := D(i)$, and since we have $$\lim(D^{\mathrm{op}}) = \mathrm{colim}(D),$$ this can be written as $$\lim \mathcal{A}(D(-),A) \cong \mathcal{A}(\mathrm{colim}(D),A).$$