Probably not the easiest way (and also maybe not the best way) to do this:
(Solution for inserting counter into itemize taken from here.)
\documentclass{beamer}
\usepackage{xpatch}
\newcounter{itemcntr}
\AtBeginEnvironment{itemize}{%
\setcounter{itemcntr}{0}%
\xapptocmd{\item}{\stepcounter{itemcntr}}{}{}%
}
\newcounter{itemscount}
\newcommand{\setitemscount}{%
\setcounter{itemscount}{\arabic{itemcntr}}%
\addtocounter{itemscount}{-1}%
}
\begin{document}
\frame{
\frametitle{title}
\begin{columns}
\begin{column}{0.45\paperwidth} %%<--- here
\begin{itemize}[<+(1)-| alert@+(1)>]
\item item1
\item item2
\item item3
\item item4
\end{itemize}
\end{column}
\setitemscount
\begin{column}{0.45\paperwidth} %%<--- here
\begin{itemize}[<+(-\theitemscount)-| alert@+(-\theitemscount)>]
\item item1
\item item2
\item item3
\item item4
\end{itemize}
\end{column}
\end{columns}
}
\end{document}
What does this code do?
First, I load the xpatch package, since I want to add a counter to every itemize environment, which does not come with such a counter per default. Using \AtBeginEnvironment, I set the previously defined counter itemcntr to 0 and then append to each \item inside the itemize environment a \stepcounter macro to increase this counter by 1. This means that the counter itemcntr contains the number of items of the last itemize environment.
Then, I define another counter itemscount and a new macro \setitemscount which essentially only sets the new counter to the value of the counter itemcntr.
Now, when you call \setitemscount, the counter itemscount is set to the number of items of the last itemize environment. You can then use the value of this counter (accessible via \theitemscount) in the argument for the following itemize environment to synchronize the alters with [<+(-\theitemscount)-| alert@+(-\theitemscount)>]. This means that the items in this environment are selected x times earlier than the current step, where x is the number of the items of the previous environment. This way, both lists are synchronous.



scontents. – user202729 Nov 07 '21 at 14:32