Select One or the Other Macros

Should be dead simple, but I can't find it.

After a shortcut activation, I want to be able to manually select one of two possible next actions. Sort of an If-Then-Else but I will choose which one.

Background, from Pixelmator I want to export with a special naming. I have the AS to accomplish this, but want to add the option to go back to Pixelmator's default Export (Cmd-E in Pixelmator or choose that menu item) if I got here by mistake.

The AS which I now have working from Pixelmator and KM:

tell application "Pixelmator Pro"
    set exportLocation to choose folder with prompt "Please choose where you'd like to export the images:"
    tell the front document
        export for web to ((exportLocation as text) & name & "_display" & ".jpg") as JPEG
    end tell
end tell

Hey @KBM,

Create two macros with the same trigger, and you'll get a conflict palette to choose from.

Conflict Palette

Alternatively you could use a Prompt for User Input Action and give the buttons keyboard shortcuts.

-Chris

1 Like

Easy enough. Why didn't I think of that?

First option is easiest, but now I know about the second one which I need to explore for other uses.

Thank you.

1 Like