--
Change your preferences or unsubscribe here:
http://groups.google.com/group/qlab
Follow Figure 53 on Twitter: http://twitter.com/Figure53
#!/usr/bin/osascript
do shell script "open -a /Applications/QLab.app --args -P default -no-remote"
delay 1
tell application "QLab"
close front workspace saving no
end tell
delay 1
tell application "System Events"
keystroke "n" using {command down}
end tell
#!/usr/bin/osascript
do shell script "open -a /Applications/QLab.app --args -P default -no-remote"
delay 1
tell application "QLab"
close front workspace saving no
end tell
delay 1
tell application "System Events"
keystroke "n" using {command down}
end tell
tell application id "com.figure53.qlab.2" to activate
tell application id "com.figure53.qlab.2"
repeat until (count workspaces) = 0
close front workspace without saving
end repeat
open "Macintosh HD:Applications:XAMPP:xamppfiles:htdocs:narrowcasting:resources:blank_workspace.cues"
end tell
tell application "Finder" of machine "eppc://user:pass@ip_address" to open "Macintosh HD:Applications:XAMPP:xamppfiles:htdocs:narrowcasting:clean_qlab.app"
tell application "Qlab" of machine "eppc://user:pass@ip_address" etc.etc.
Unfortunately I have to run this script on a remote machine sometimes.I'm using eppc for this.I cannot send all the commands through eppc, for example "activate" does't work, and the closing of the workspaces also doesn't respond.That's why I save the above applescript as a application on the remote machine and open it through eppc:tell application "Finder" of machine "eppc://user:pass@ip_address" to open "Macintosh HD:Applications:XAMPP:xamppfiles:htdocs:narrowcasting:clean_qlab.app"After this I start sending commands to Qlab:tell application "Qlab" of machine "eppc://user:pass@ip_address" etc.etc.At the moment I put a delay between these 2 commands, because I cannot find out how to run this sequentially.Any tips how to remove the delay here and startin sending cues/commands to Qlab when the clean script is finished?
tell application "System Events" of machine "eppc://user:pass@ip"
keypress "n" using {command down}
end tell
set remoteMachine to "eppc://user:pass@ip_address"set remoteSystemEvents to application "System Events" of remoteMachineset cleanQLabIsRunning to 1
using terms from application "System Events"repeat until cleanQLabIsRunning = 0tell remoteSystemEventsend tellif cleanQLabIsRunning ≠ 0 then delay 1end repeatend using terms from
--
Change your preferences or unsubscribe here:
http://groups.google.com/group/qlab
Follow Figure 53 on Twitter: http://twitter.com/Figure53