Problem with basic variable math


My goal is to take the value on the %SystemClipboard% and subtract 10. That's it. The graphic illustrates just some of the things I attempted, but when tried just typing 1442 into where it is at least a calculation, it doesn't work. Odd. I'm probably just missing a glaring issue.

Any ideas appreciated.

While you're waiting, I would be tempted to paste this kind of thing into an Execute JavaScript for Automation action:

(() => {
    'use strict';

    // standardAdditions :: () -> Application
    const standardAdditions = () =>
        Object.assign(Application.currentApplication(), {
            includeStandardAdditions: true

    const v = standardAdditions().theClipboard();
    return isNaN(v) ? (
    ) : parseInt(v, 10) + 10;


Hey Tim,

It appears to me that you simply haven't run the macro.


Got it!
Set Variable “OldWidth” to Text “%SystemClipboard%”
Set Variable “NewWidth” To Calculation “OldWidth - 10”
Set System Clipboard to Text “%Variable%NewWidth%”