Thank you for sharing this workflow!
Exactly what I needed, and helped me understand more about Alfred's worfklow logic and Actions.
Very much appreciated.
Those are different things. Both /Applications/Programming/Docker.app and /System/Volumes/Data/Applications/Programming/Docker.app are absolute paths. A relative path depends on the directory one is at the time. For example. If you were in /System/Volumes, to get to the first path you’d do ../../Applications/Programming/Docker.app.
Alfred shows those paths because they are the real locations on the filesystem; it is necessary that they be accurate so they work for different uses.
You can make a Workflow to copy paths without the /System/Volumes/Data without writing code. Like so.