In Python Bundle for "Debug Script in Terminal":
tell application "Terminal"
do script with command "$TPY -m pdb $TM_FILEPATH"
doesn't work for TM_FILEPATHs which contain white spaces.
tell application "Terminal"
do script with command "$TPY -m pdb '$TM_FILEPATH'"
We have superseded ScriptMate with a new API method in the TextMate
ruby module. It is called Executor.run. I've written a little
explanation of what Executor is for, and how to use it:
Big thanks to Allan and Luke Daley without whom Executor would not
have been possible.
Dear textmate users
I apologize if this problem was already described somewhere, but I
could not find a solution.
I'm using Textmate build 1436 and the LaTeX bundle to typeset
some .tex document.
Everything is working, but I always get the message
"There was a problem reading the preferences file, continuing with
at the top of the "Typeset & View" window. When I go to the bundle
preferences I also get a floating yellow message saying
<p class="error">There was a problem reading the preferences file,
continuing with defaults </p>
The problem is that I can't change any bundle preferences, so for
example I can't make the log window stay open after typesetting.
I found someone with the same problem, but there it seemed to be
caused by build 1455, and when she reverted to 1436 it was gone.
Any suggestions? Should I install the latest build?
Thanks in advance,
I've noticed that when Textmate saves a file it leaves a backup "._"
copy behind. Is there any way to prevent this from happening? There is
nothing in the Preferences that indicate any control over this.
I just checked out the latest DIALOG2 code, compiled it on my good
old Mac OSX 10.4.11 ppc.
If I invoke an HTML tooltip the webview is correct but it will be
placed at position (0,0) bottom left. The frame size fits.
I tried to figure out why, but I didn't see it.
Is this reproducible?
Here a tiny test command:
"$DIALOG" tooltip -f html <<< 'Hello <b>World</b>'
and press CTRL+R
I've just started using TextMate and I'm hugely impressed by it. My
text editor requirements are not very sophisticated, I use it mostly
for HTML/CSS and for processing text from time to time from databases,
or transcripts of online meetings with chat clients, that kind of
thing. I'm sure that I will be using TextMate for my simple
AppleScript writing as well now in preference to Apple's rather basic
I have been using BBEdit for ages and I feel it is a very fine text
editor indeed, however TextMate is a bit of genius.
Before I used BBEdit I used the Nisus Writer word processor for text
editing in the classic Mac OS. Although a word processor Nisus Writer
was a superb text editor and, like TextMate offered many truly unique
abilities. Nisus also made a text editor called QUED/M which predated
their word processor and had similar unique abilities of their word
One of the truly great things about Nisus Writer and QUED/M was the
non-contiguous text selection and the way in which Nisus had exploited
I think Nisus were the first with non-contiguous text selection but
today it is quite common-place. An obvious example is Apple's TextEdit
which will do non-contiguous text selection. If you are not familiar
with it then you can open an TextEdit document and put it in 'rich
text' mode if it is not already. Then put some text into it. Now you
can select non-contiguous words in that text using command-click. Now
that you have selected those words you can press command-B on your
keyboard and those words will turn bold.
I'm now going to describe how Nisus exploited non-contiguous text
selection and why it was so very useful.
If you imagine that you have some text which is intended for a web-
site. Within the text are various book titles and you wish to surround
these with the <em> tag. There is nothing at all about the words of
the book titles which is similar. Well with Nisus Writer you would
select the book titles non-contiguously, using command-click, then you
would get out the Find dialogue and put in the Find field:
In the Replace field:
(The & matching all of the Find field)
Then you invoke 'Replace in Selection' and each piece of non-
contiguously selected text is now surrounded by <em> tags.
In Nisus Writer you would turn that operation into a macro and now you
can apply the <em> tags to any non-contiguously selected text with
Now it gets cleverer :)
In the example above the replaced text, the book titles surrounded by
<em> is still selected after the Find/Replace has been performed. This
means that further GREP Find/Replace can by performed using 'Replace
With a programme like BBEdit a search for multiple items in a file
will produce a browser identifying the search results. However with
Nisus Writer a search for multiple items in a file will leave them
selected non-contiguously in the file. This enables you to perform a
further search on those non-contiguous selections with 'Replace in
To give an example.
I think it is nice to have smart quotes in the displayed text in a web-
site. To do this I have to use HTML entities. The actual text I have
contains 'stupid' quotes, however I can create a Find/Replace that
will look for the 'stupid' quotes and replace them with 'smart quote'
HTML entities depending on whether they come before or after words.
The problem is that there are many 'stupid' quotes in the HTML tags
for things like class="main".
What I need to do is to find the text between the HTML tags and then
replace the 'stupid' quotes in that with the smart quote HTML entities.
To do this in BBEdit I created an AppleScript which has a loop. It
finds the first instance of 'text between HTML tags' and then replaces
'stupid' quotes with smart quote HTML tags. Then it finds the next
instance of 'text between HTML tags' and so on...
To do that required me to create quite a clunking AppleScript.
However in Nisus Writer I could do it with two simple Find/Replace
operations. Because Nisus Writer had non-contiguous selection of
course. I could find all the instances of 'text between HTML tags' and
know that this was selected. Then I could use 'Replace in Selection'
to replace all the 'stupid' quotes with smart quote HTML entities. For
Nisus Writer this was an absolutely trivial matter.
So, the moral of my story is that in a text editor with GREP Find/
Replace having non-contiguous text selection brings a massive amount
of additional text editing power.
Is it possible to add the feature or even a plugin that makes TextMate
remember which directories I have expanded in the project drawer? I'd
like to be able to quit TextMate and be able to keep my project window
exactly as I had it the next time I launch the project.
if I press CTRL+SHIFT+A
I see all subversion commands:
Add to Repository
Remove From Repository
Update to Newest
Would it be possible to have the submenu titles instead of a line
'--------' in TM 2.0?
Add to Repository
Remove From Repository
Update to Newest
History and Info
Show Available Revisions for Merging
Resolve Conflicts With FileMerge…
This already works for shortcuts of commands which are stored in
different bundles. And I do not know if one could add a new level in
the inline menu.
for some bundles I wrote I came across that it would be nice to have a
kind of a "init procedure" for bundles.
I'm thinking about to have a standard subfolder called "_INIT_" in a
bundle. If that subfolder exists all scripts inside of that subfolder
will be executed while installing that bundle (meaning double-click at
X.tmbundle, or "Reload Bundles", or TM starts). It should be added a
marker that indicates that the init procedure was done to avoid to
call these scripts more than once.
This init scripts should be execute inside of the bundle environment
(to e.g. interpret $TM_BUNDLE_SUPPORT correctly).
This could be helpful for instance:
- to check dependencies of libs, files, versions of executables, OS
version etc. and give an alert if something mismatches
- to set up/build/unzip bundle specific files (useful to minimize the
bundle size while downloading)
- to install a specific environment used by the bundle's commands
(e.g. for the Rdaemon, it will install Rdaemon while installing the
- to ask the user if a file is missing to download it and to install it
I do not know if that request is specific to me. And I do not know
what kind of consequences will arise, esp. to check e.g. a text file
was changed inside of the bundle which is the source to built an index
Of course, it could also be a security issue.
Furthermore if these init scripts always will execute if TM starts it
could be used to check if an update is available for the given bundle.
Are there any comments on that?
I try to use the "Edit in Textmate" function in Mail but all I get is a
blank page. If I type something and save it, it would just add that piece of
text to the mail, where the cursor is.
Is this the default behaviour? I thought Textmate usually display the whole
The "Edit in Textmate" works in other application, I'm writing this post now
through Safari in Textmate.
View this message in context: http://www.nabble.com/%22Edit-in-Textmate%22-not-working-for-Mail.app-tp180…
Sent from the textmate users mailing list archive at Nabble.com.