Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

GregInChrist

macrumors newbie
Original poster
May 23, 2012
5
0
I am looking to control the size and position of a document when it opens. I do not want to open it and then move it. The following is working to open in a specific location and size. Thats all fine.

I am having trouble however with getting a new window "IF" a window is already open. If a window is already open it will open in a new tab rather then window.

Anyone think they have an answer?
Code:
tell application "TextWrangler"
	make new document with properties {bounds:{300, 50, 1000, 600}}
end tell

Thanks a ton and may the Lord Jesus bless you sincerely!
 
Code:
tell application "TextWrangler"
	make new window with properties {bounds:{300, 50, 1000, 600}}
end tell
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.