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

Similar Threads
thread Thread Starter Forum Replies Last Post
Photoshop web preview in new tab not new window?? PicnicTutorials Mac Applications and Mac App Store 0 Jan 28, 2014 08:05 AM
Geektool: nerdtool: script window showing once, then disappearing G0meZ UI Customization 1 Oct 23, 2013 01:53 PM
Why does Finder open so tiny how can I set it to open in bigger window? bobright OS X 2 May 6, 2013 12:17 PM
Safari - opening New Window as a Tab? garycurtis Mac Basics and Help 4 Apr 11, 2013 05:59 PM
Safari Downloads open new window/tab Jenni8 Mac Applications and Mac App Store 1 Sep 15, 2012 10:54 AM

Forum Jump

All times are GMT -5. The time now is 03:07 AM.

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

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