Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Sep 13, 2012, 06:51 PM   #1
GregInChrist
macrumors newbie
 
Join Date: May 2012
Apple Script - open textwrangler in new window rather then tab.

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!
GregInChrist is offline   0 Reply With Quote
Old Sep 13, 2012, 07:36 PM   #2
kryten2
macrumors 6502a
 
Join Date: Mar 2012
Location: Belgium
Code:
tell application "TextWrangler"
	make new window with properties {bounds:{300, 50, 1000, 600}}
end tell
__________________
Space Corps Directive 34124
kryten2 is offline   0 Reply With Quote
Old Sep 14, 2012, 08:18 AM   #3
GregInChrist
Thread Starter
macrumors newbie
 
Join Date: May 2012
Perfect, Thanks.
GregInChrist is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 01:18 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC