osx - Logging Window Bounds (dimensions) with Appleccript -
it's been ages since i've dealt applescript, advanced apologies screwing terminology here.
using following snippet, can resize window
tell application "bbedit" activate set bounds of first window {100, 0, 700, 700} end tell
i'm interested in using similar statement read , log bounds of first window. tried
tell application "bbedit" activate log (the bounds of first window) set wsize bounds of first window log wsize end tell
but event log listed
(*bounds of window 1*)
each time. expecting more
{100, 0, 700, 700}
my eventual goal create variable contains window bounds, , programmatically manipulate values. step 1 learning how log values.
so, how can log bounds of window application in apple's script editor.
use get
...
tell application "bbedit" log (get bounds of window 1) end tell --> log: (*332, 44, 972, 896*)
Comments
Post a Comment