I’d have to look at the project file with the AppleScript and I could probably figure it out. Maybe it is a character set issue. Maybe paste the AppleScript into a text editor first then copy and paste it from your text editor into MT Pro.
Steve Caldwell
Bome Customer Care
Also available for paid consulting services: bome@sniz.biz
I tried your suggestion, to the same result. Again, it has worked from Bome before, using both the ‘test’ button, as well as firing it from the intended source, via MIDI note. Also it works directly from AppleScript Editor. Here’s the script I’m working with:
using terms from application ‘Spotify’
if player state of application ‘Spotify’ is paused then
tell application ‘Spotify’ to play
else
tell application ‘Spotify’ to pause
end if
end using terms from
So, I found a simpler version of the Script function I’m trying to achieve:
tell application ‘Spotify’
playpause
end tell
This works in AppleScript Editor. It did not work in my main project, but I opened a new project and it worked from there. Not sure what the deal is with the main project. Other functions work through there, but not AppleScript.
OK, I think I figured out the culprit. I had created another preset that was to run a different AppleScript, but the script was not finished, and therefore not executable.
I think I read in a forum somewhere that if there is another AppleScript that has issues, it will prevent others from running correctly? I deleted the unfinished script from the other preset and the Spotify script began working again.
Thank you for you time, and good luck with the rest of this!