Some years ago Apple dropped support for my ancient Canon Lide 30 scanner. So, I hung it off a Raspberry Pi (which still supports the scanner via scanimage) and wrote a very simple Apple Script and an equally simple Bash Shell Script to make it work again. The Apple Script ran on an Intel iMac and simply asked the user what size scan they wanted (full page, half page, etc.) The Apple Script then ran the Bash shell script which in turn ran a command on the Pi:
```
		ssh pi@raspsky 'scanimage -x 210 -y 297 --resolution 300 > scan.ppm';;.
```
I exported the AppleScript from Script Editor as an app.
This continues to work fine on the Intel iMac.

Then I got an M2 MBA. I copied both the AppleScript and the Shell Script to the MBA. I exported the AppleScript from the Tahoe version of Script Editor (Version 2.11 (234)) as an app so it wouldn't need Rosetta to run. When I "Get Info" on the app it is a universal app, but "Open Using Rosetta" is not checked.

It works, but is incredibly slow and displays the dreaded SPOD all the time that it is running. I tried looking at Activity Monitor while it is running and it is consuming a very small amount of CPU time (2%).

So, what additional information can I offer up to figure out just what I've done wrong?

The script:

```
-- Wrapper for bash shell script which uses scanimage
-- Ask the user what size to scan
-- Full is an A4 sized scan
-- Half is half an A4
-- Quarter is the top right quadrant of the scanner bed.

set mySize to choose from list {"Full", "Half", "Quarter", "Passport"} with prompt "Select A4 scan size. Quarter is top right"

-- Check to see if the user clicked the Cancel button.

if mySize is false then
	-- The user clicked Cancel so display and confirming dialog and exit	
	display dialog "Canceled" buttons ("OK") default button "OK"
else
	-- The user made a selection so call the shell script and append the selected size to the call
	do shell script "/Users/mnewman/bin/a4scanpi.sh " & mySize
end if

-- That's all folks
```