View Single Post
  #4  
Old 07-05-2007, 10:05 AM
minckster minckster is offline
Registered User
 
Join Date: Apr 2006
Posts: 18
The last three nights the script above worked fine.

The problem was (is?) that the "keystroke" for pausing VisualHub didn't seem to catch always. vh124ffmeg, which is the process that does the actual video conversion, takes 100% of my CPUs (nice'd), so there can be a delay getting VH to come to the foreground. That delay is what made me insert the sleep before the "keystroke". Could "delay" be a better choice for me than "/bin/sleep" in this instance?

I wish I could find a way of sending a pause command directly to either VisualHub or vh124ffmpeg instead of flailing around with "System Events" and "keystroke", but that seems more like a question for the VH forums than SD's.

Thanks for the great comments in your scripts! I guess you can recognize the sleep snippet above. I think I picked up "if exists process" from you too.

Last edited by minckster; 07-05-2007 at 10:14 AM.
Reply With Quote