applescript - Funny issue with using automator to set quicktime window position -


i'm using applescript within automator start quicktime recording. when run applescript automator, works fine, when run same automator sequence double-clickable application, throws error* when gets line:

tell application "system events" tell process "quicktime player" set position of front window {1131, 725} 

any ideas why?

thanks!!

*the error just, "the action “run applescript” encountered error"

you might getting error because application doesn’t have permission access gui scripting.

however, can position , resize windows in quicktime player without gui scripting this:

tell application "quicktime player"     tell window 1         set bounds {100, 100, 640, 480}     end tell end tell 

the 4 numbers set bounds x position, y position, window width, window height. above script tells first window position 100 pixels away top of screen, 100 pixels away left of screen, , 640 pixels wide , 480 pixels tall.

look in quicktime player’s applescript dictionary commands enable start recording applescript. open script editor app , choose file > open dictionary , choose quicktime player.


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -