dotherightthing / focalpoint-multi-cropper

Add a focalpoint to an image and generate project-specific crops.
0 stars 0 forks source link

Create macOS app #98

Open dotherightthing opened 10 months ago

dotherightthing commented 10 months ago
  1. Open Automator and double-click on Application.
  2. In the "Name" search box, type Apple and select "Run AppleScript".
  3. Double-click "Run AppleScript"
  4. Replace (* Your script goes here *) with the following code:
on run {input, parameters}

    tell application "Terminal"
        activate
        do script with command "cd /Users/dan/Websites/focalpoint-multi-cropper && npm run start"
    end tell

    return input
end run
  1. Name file and save to Applications
  2. App can be found and launched via Spotlight

See https://apple.stackexchange.com/a/99437