This issue is happening due to a security feature added in Illustrator to inform the user if any external application tries to execute a script in Illustrator.
Solution: Update your Logitech options app to the latest version – https://www.logitech.com/en-in/product/options
We heard from some users that above solution is not working for them, we are investigating this issue. Meanwhile users can try the below workaround
Create a JSX file with the following content:
Save the above JSX file. Now, go to File > Scripts > Other Script, and choose the newly saved jsx file.
This will suppress the warning dialog and run the script.
An error occurred while saving the commentAlan commented
Where latest Logitech version doesn't work, JSX solution does work.
For those who want a bit more information:
Place the text file called something like logitech-workaround.jsx in -
/Applications/Adobe Illustrator 2021/Presets/en_GB/Scripts (en_GB different for different countries)
Need to create it on your desktop and move it rather than saving direct there to get around permissions.
NOTE - the text above has 'sexed' quotes. These need changing to straight quotes.
Then proceed as suggested via File > Scripts > Other Scripts