Apple Script - open textwrangler in new window rather then tab.

Discussion in 'Mac Programming' started by GregInChrist, Sep 13, 2012.

  1. GregInChrist macrumors newbie

    Joined:
    May 23, 2012
    #1
    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!
     
  2. kryten2 macrumors 6502a

    Joined:
    Mar 17, 2012
    Location:
    Belgium
    #2
    Code:
    tell application "TextWrangler"
    	make new window with properties {bounds:{300, 50, 1000, 600}}
    end tell
    
     
  3. GregInChrist thread starter macrumors newbie

    Joined:
    May 23, 2012

Share This Page