can i use applescript for size/position of work windows?


i have used devonthink for years but not with applescript or automator. i have never used either of these but would be eager to learn/try if it would be helpful for the following scenario:

i am writing a daily journal with text, web pages and images (jpeg, tiff, et cet) and have to set up about 4 or 5 windows (for images, notes, list of files/folders) in upper left, upper right, main writing window in center, et cet. to get going. this is not so labor-intensive i can’t do it each time but i’d love to set up a script/macro to click and then watch windows size/position themselves the way i like.

is this possible?



That’s indeed possible, e.g. have a look at this code snippet:

tell application "DEVONthink Pro"
	set bounds of think window 1 to {100, 100, 500, 300}
end tell

This will move the frontmost window to (100,100) and resize the window to (500,300).

shall try!