Re: Using applescript to play paus...
A Karaoke program called KJams. I was given the correct code to start and stop it. It works outside of Mainstage in Applescript editor, but not within the program. When I introduce a script like the play/pause from outside the mainstage scripts already within the action folder labeled Applescripts it causes all of the scripts to cease working within the program. I haven't figured that out, yet. But when I delete my scripts from the Mainstage script folder the iTunes scripts play again from within Mainstage. I will post the scripts on here. Try mapping a button to an iTunes Applescript and the button should work, then copy it and rename it and put it back in the folder. According to my findings it will stop all the scripts from working. I will be back in a few hours. Thanks!Her's the script:
set kScriptCommand_PLAY_PAUSE to 1
set kScriptCommand_STOP to 2
set kScriptCommand_BACK_REWIND to 3
set kScriptCommand_NEXT to 4
set kScriptCommand_VOL_UP to 5
set kScriptCommand_VOL_DOWN to 6
set kScriptCommand_VOL_MUTE to 7
set kScriptCommand_PITCH_UP to 8
set kScriptCommand_PITCH_DOWN to 9
set kScriptCommand_PITCH_NORMAL to 10
set kScriptCommand_SAVE to 11
set kScriptCommand_TEMPO_UP to 12
set kScriptCommand_TEMPO_DOWN to 13
set kScriptCommand_TEMPO_NORMAL to 14
set kScriptCommand_FULL_SCREEN to 15
set kScriptCommand_CAM_POWER to 16
set kScriptCommand_CAM_SHOOT to 17
tell application "kJams Pro"
docommand kScriptCommand_PLAY_PAUSE
end tell
Reply