Announcement

Collapse
No announcement yet.

AppleScript only executing on first run

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • AppleScript only executing on first run

    Greetings. I'm new to AppleScript and newish to OSCulator, so pardon me if I'm missing something obvious to others. I have a number of scripts mapped to an incoming MIDI note, demuxing velocity to match AppleScripts to change key in Auto-Tune. This works for each successive key change, but only once. Calls to the script after the first instance don't result in action. I can confirm the relevant MIDI data is reaching OSCulator. Here's an example script

    tell application "Logic Pro X" -- need to have Auto-Key open and top right
    activate
    end tell

    tell application "System Events"
    click at {1375, 210} -- select key dropdown
    delay 0.25
    click at {1362, 255} -- select key C major
    delay 0.25
    click at {1200, 282} -- send to Auto-Tune
    end tell


    I welcome any insight into the matter. Thanks.
    -C.Perkins
Working...
X