According to Chat GPT, you can embed AppleScripts into your Xojo app. It looks something like this:
Var appleScript As String = _
"tell application \"Pages\" to activate" + Chr(10) + _
"tell front document" + Chr(10) + _
" -- Define the list of notes and their semitone values" + Chr(10) + _
" set noteList to {\"C\", \"C#\", \"D\", \"D#\", \"E\", \"F\", \"F#\", \"G\", \"G#\", \"A\", \"A#\", \"B\"}" + Chr(10) + _
" set semitoneShift to " + transposeFromIndex.ToString + " as integer" + Chr(10) + _
" tell current page" + Chr(10) + _
" set textBoxList to every shape" + Chr(10) + _
" repeat with thisBox in textBoxList" + Chr(10) + _
" tell thisBox" + Chr(10) + _
Has anyone ever tried this? When I deploy my app, I want it to run on any MacOS machine without having to reference an actual AppleScript. Or does dragging an AppleScript into your project accomplish that?
Thanks!
8 posts - 4 participants