|
Opening & Tiling TextEdit Documents
|
Login/Create an Account
| Top
| 22 comments
|
Search Discussion
|
|
|
|
The Fine Print:
The following comments are owned by whoever posted them.
We are not responsible for them in any way.
|
 |
|
 |
 |
|
 |
 |
 |
You could create a Keyboard Maestro [keyboardmaestrro.com] macro that opened each document in turn, resizing and repositioning the window. Trigger it via a hot key or palette.
Let me know if you have any troubles getting it to work.
|
|
 |
 |
|
|
[ Reply to This | Parent
]
|
|
 |
|
jedit
(Score:1, Informative)
|
|
 |
 |
|
by
Anonymous Coward
on Sunday March 09, @01:43PM (#121472)
|
|
 |
 |
 |
Oh hey... is this site still around?
I'd give jEdit [jedit.org] a shot. I'm not sure the feature you want is there, but I'd be surprised if it isn't. There seems to be a plugin to do just about everything I've ever wanted, and a zillion where I was like "wow, who would ever think to do that...?"
|
|
 |
 |
|
|
[ Reply to This | Parent
]
|
|
 |
|
 |
 |
|
 |
 |
 |
You can use AppleScript to tell TextEdit to size its windows.
Here is an example:
tell application "TextEdit"
set bounds of first window to {20, 30, 300, 300}
set bounds of second window to {300, 300, 600, 600}
end tell
You enter this in Script Editor which you find in your Applications->AppleScript folder
The numbers are in pixels and refer to the {left,top,right,bottom} of the window.
Henrik
|
|
 |
 |
|
|
[ Reply to This | Parent
]
|
|
 |
|
 |
 |
|
 |
 |
 |
AppleScript can also open the files for you.
I find it easier to work with POSIX style file paths rather than the "normal" AppleScript paths, so the first four lines are setting up POSIX paths, then the following four lines convert them to AppleScript files. Finally, tell TextEdit to open them and position the windows (The lines that start with -- are comments; lines that don't get executed. I'm not counting them when I say things like "the first four lines").
-- Set up paths to your files
set file1 to "/Domain/summitprojects.com/Users/dru/Desktop/Neal Tunes.rtf"
set file2 to "/Domain/summitprojects.com/Users/dru/Desktop/Have you forgotten?.rtf"
set file3 to "/Domain/summitprojects.com/Users/dru/Desktop/imag eset.rtfd"
set file4 to "/Domain/summitprojects.com/Users/dru/Desktop/Smar twoolS7ImageSets.txt"
-- Turn your POSIX paths into AppleScript files.
set file1file to POSIX file file1
set file2file to POSIX file file2
set file3file to POSIX file file3
set file4file to POSIX file file4
tell application "TextEdit"
-- Open file 1 and position it.
open file1file
set bounds of front window to {0, 22, 500, 500}
-- etc.
open file2file
set bounds of front window to {500, 22, 1000, 500}
open file3file
set bounds of front window to {0, 500, 500, 1000}
open file4file
set bounds of front window to {500, 500, 1000, 1000}
end tell
I don't know how comfortable you are scripting, but you can make this a little easier on yourself by setting up lists and functions...but the above approach might be easier to grasp up front.
I couldn't resist making it a little more flexible adding variables for the width and height of the windows, and figuring out the tile positions from there. So, set up your desired window width and height in lines 5 and 6.
-- Set up paths to your files
set file1 to "/Domain/summitprojects.com/Users/dru/Desktop/Neal Tunes.rtf"
set file2 to "/Domain/summitprojects.com/Users/dru/Desktop/Have you forgotten?.rtf"
set file3 to "/Domain/summitprojects.com/Users/dru/Desktop/imag eset.rtfd"
set file4 to "/Domain/summitprojects.com/Users/dru/Desktop/Smar twoolS7ImageSets.txt"
set width to 500
set height to 500
-- Turn your POSIX paths into AppleScript files.
set file1file to POSIX file file1
set file2file to POSIX file file2
set file3file to POSIX file file3
set file4file to POSIX file file4
tell application "TextEdit"
-- Open file 1 and position it.
open file1file
set bounds of front window to {0, 22, width, height + 22}
-- etc.
open file2file
set bounds of front window to {width, 22, width * 2, height + 22}
open file3file
set bounds of front window to {0, height + 22, width, height * 2 + 22}
open file4file
set bounds of frontRead the rest of this comment...
|
|
 |
 |
|
|
[ Reply to This | Parent
]
|
|
|
 |
|
 |
 |
|
 |
 |
 |
|
Give TextWrangler a shot. It is free and very nice. Under the "Window" menu is an "arrange" command that will tile all open windows in a number of ways.
|
|
 |
 |
|
|
[ Reply to This | Parent
]
|
| | |
|
|
[ Reply to This | Parent
]
|
|
 |
|
 |
 |
|
 |
 |
 |
Yeah, all 6 of us. Windows -- the OS equivalent of junk food - Bill Joy
|
|
 |
 |
|
|
[ Reply to This | Parent
]
|
|
|
 |
|
 |
 |
|
by
Anonymous Coward
on Friday March 14, @03:28PM (#121510)
|
|
 |
 |
 |
An excellent free, open source editor. You can find it here:
http://smultron.sourceforge.net/
It completely replaces TextEdit for me. And unlike some other editors, it is a native Cocoa app that performs great.
Willy
|
|
 |
 |
|
|
[ Reply to This | Parent
]
|
| - 1 reply beneath your current threshold.
|
 |
|
 |
 |
|
by
Anonymous Coward
on Tuesday March 25, @11:01AM (#121573)
|
|
 |
 |
 |
|
Good to see MacSlash is still Back and On the Cutting Edge.
|
|
 |
 |
|
|
[ Reply to This | Parent
]
|
| - Re:Yes!
by Anonymous Coward
Friday April 11, @02:42AM
|
 |
|
 |
 |
|
by
Anonymous Coward
on Tuesday April 29, @12:03PM (#121885)
|
|
 |
 |
 |
open the files in one macvim window, set up the splits the way you want (:sp, :vs), and then save the session. (:mksession).
http://macvim.org/
|
|
 |
 |
|
|
[ Reply to This | Parent
]
|
|
|
|