The list is reduced to a single value in the AppleScript. All you need to do is to retrieve that value by following these steps:
-
Add the Execute an AppleScript action to a macro.
-
Copy and paste the AppleScript above into that action.
-
Change ignore results to save value to variable. A Save to variable field will appear.
-
In the Save to variable field, enter your desired variable name, e.g., local_DesktopSpaceNo.