I would think this might work:
tell application "TextMate" to activate
tell application "System Events"
tell process "TextMate"
tell menu bar 1
tell menu bar item "Bundles"
tell menu 1
tell menu item "ActionScript"
tell menu 1
tell menu item "Test Movie"
perform action "AXPress"
end tell
end tell
end tell
end tell
end tell
end tell
end tell
end tell
But it seems to give no response. Anyone know how I might do this?
Thanks,
Ben
Hello,
I'm not sure who this stephen fellow is (he's not listed in the wiki
[list of aliases][alias]), but he just committed an absolute monster of
a bundle to the subversion repository, in the form of a "C Library"
bundle consisting of 1299 snippets, each of which takes the name of a
function as a tab trigger, and then fills in a skeleton body for that
library function. I have a few notes about this.
[alias]: http://macromates.com/wiki/Main/Aliases
1. This doesn't really follow Allan's recently posted [style guide][sg]
for bundles, which clearly explains how bundles should be constructed.
Though, to be sure, that style guide needs to be a lot clearer about
what *not* to do. Of note: this bundle falls in the "what not to do"
category.
2. There are a few recently added code completion commands which work
much better, don't require the user to remember the whole function name,
only require one menu item, instead of 1299, don't clog up menus (in
fact they can just be added to the language bundle instead of requiring
a specialized bundle just for snippets), and are pretty much better in
every way.
3. Note: Snippets ARE NOT DESIGNED for GENERIC CODE COMPLETION. This is
not their purpose, and if you do want to use them this way, you should
keep such monstrosities in your personal bundles, and not pollute the
subversion repository with them. If you absolutely positively must
distribute such things, please do it on your own server.
4. Yes, there are similar things in existing bundles, which should be
excised. This includes the OCamlCodeCompletion bundle, and the recently
added ColdFusion bundle. Hopefully something will be done about these soon.
5. I hope it becomes slightly easier to make generic completion commands
in the future, because at the moment, I'm not sure it can be done by a
complete newbie, and it's a useful enough feature that it would be nice
to give even new users such power. Allan is hopefully considering such
things for TextMate 2.0.
6. I'm going to remove this new bundle tomorrow if there isn't a very
compelling reason not to. If anyone wants to pitch in a code completion
bundle which does the same thing, only better, I'm sure the C coders who
use TextMate would be overjoyed. Hopefully it could be made in a
general enough fashion to read in arbitrary new header files (like the
ones included in the current «foo».c file, that is), and complete on
those functions, as well as functions in the usual C libraries (all the
stuff like malloc and printf etc. etc.)
Okay, I think that's all. Hope that didn't come off too strongly. I
don't mean to discourage contributions, but please ask around a bit
before checking in bundles with ~1300 items.
Thanks,
Jacob Rus
I'm looking for help implementing a few features for my screenwriting
bundle.
The features I'm looking to implement are beyond my knowledge, but
I'm sure will be trivial to a ruby-master or something. So if you're
interested in helping me out, please drop me a line and I'll explain
what I want to do.
The reason I don't just ask you how to do these things is that I'm
afraid they might be too basic for this list.
I've always wondered about what kinds of questions are appropriate
for this list. I'm hesitant to ask basic code questions regarding
things I'm trying to do in TextMate but have nothing to do with
TextMare per-se; for example, a complex regexp problem one might have.
Clearly we don't want this list to become littered with help requests
for things that are not directly TextMate-related. But at the same
time, I would never have been able to create the bundle I have
without the patient explanations of so many of the people on this list.
So my question is, where is the line? I'd be curious to know what you
all think.
--oliver
Didn't notice the filename completion until Thomas Aylott mentioned
it in a recent email. Thanks Thomas! One problem though. If I type `/
Users/` and hit control tab I am offered the following options in the
dialogue menu:
Incomplete/
Shared/
~/
I thought the tilde would expand when the path was inserted, but it
didn't. And if I type `/Users/` followed by the first few letters of
the name of my home directory, all that the menu offers me is the
tilde which, again, doesn't expand when the path is inserted.
All the best, Mark
I got a new machine recently and one of the first things I installed
was obviously TextMate. This was before I had installed anything in
(or even created) `/usr/local`. I realized this when TextMate offered
to create the `mate` symlink in `/usr/bin`. No big deal. I declined,
created `/usr/local/bin`, and started TextMate again. It still wanted
to put the link in `/usr/bin` and `/usr/local/bin` didn't appear on
the drop-down list. So, I just choose "Other…" and specified a path.
Still no big deal. It's a one-time operation after all.
But yesterday, I tried to use the Subversion bundle for the first
time on the new machine and it couldn't find `svn`. I typed `echo
$PATH` and hit ⌃R and saw that `/usr/local/bin` hadn't made it to
this list either (while it does appear on another machine I've been
using for a while).
Now, I know I can fix these problems one at a time as they come up
(specify a path for `mate`, set a path in `$TM_SVN`, etc) but I'd
rather not do that. Plus there may be other ramifications that aren't
obvious and I won't know they need fixing. This applies to newly
created users as well, so it seems to be a global thing, but I can't
figure out where. I see nothing in `/Library` that would affect
TextMate and I know Allan has a rule about the app not modifying
itself in `/Applications`.
Does anyone know how to make TextMate generally/globally aware that `/
usr/local/bin` exists now (as though it existed the first time I ran
TextMate)? Thanks in advance.
---
Rob McBroom
<http://www.skurfer.com/>
I didn't "switch" to Apple... my OS did.
Folks;
I am trying to use the blogging bundle with LiveJournal's XMLRPC interface.
I run through the setup process just fine, but then when I go to
"Fetch Post" , the bundle prompts me for my password correctly and
seems to be starting to connect just fine, but then blows up with the
following:
---
/usr/lib/ruby/1.8/xmlrpc/parser.rb:154:in `fault': wrong
fault-structure: {"faultCode"=>"Client", "faultString"=>"Failed to
access class (metaWeblog): Can't locate metaWeblog.pm in @INC (@INC
contains:) at (eval 334)[/usr/share/perl5/SOAP/Lite.pm:2261] line
3.\n"} (RuntimeError)
from /usr/lib/ruby/1.8/xmlrpc/parser.rb:562:in `tag_end'
from /usr/lib/ruby/1.8/rexml/parsers/streamparser.rb:26:in `parse'
from /usr/lib/ruby/1.8/rexml/document.rb:171:in `parse_stream'
from /usr/lib/ruby/1.8/xmlrpc/parser.rb:722:in `parse'
from /usr/lib/ruby/1.8/xmlrpc/parser.rb:462:in `parseMethodResponse'
from /usr/lib/ruby/1.8/xmlrpc/client.rb:410:in `call2'
from /usr/lib/ruby/1.8/xmlrpc/client.rb:399:in `call'
from /Library/Application
Support/TextMate/Bundles/Blogging.tmbundle/Support/lib/metaweblog.rb:31:in
`getRecentPosts'
from /Library/Application
Support/TextMate/Bundles/Blogging.tmbundle/Support/lib/blogging.rb:547:in
`fetch'
from /Library/Application
Support/TextMate/Bundles/Blogging.tmbundle/Support/lib/blogging.rb:546:in
`popen'
from /Library/Application
Support/TextMate/Support/lib/progress.rb:11:in `call_with_progress'
from /Library/Application
Support/TextMate/Bundles/Blogging.tmbundle/Support/lib/blogging.rb:546:in
`fetch'
from /tmp/temp_textmate.wBuvVB:3
--
Do I need to install some special Perl module somewhere?
Thanks!
-Chris
--
Chris Patti --- Y!: feoh -- AIM: chrisfeohpatti --- E-Mail: cpatti(a)gmail.com
"The greatest dangers to liberty lurk in insidious encroachment by men of
zeal,well-meaning but without understanding."-- Justice Louis O. Brandeis
(Olmstead vs. United States)
⌘R seems to be broken for Perl scripts at the moment. After an svn
up in /Library/Application Support/TextMate/Bundles attempts to run a
Perl script yield
/Library/Application Support/TextMate/Bundles/Perl.tmbundle/Support/
PerlMate/perlmate.rb:1:in `require': no such file to load -- /
Applications/TextMate.app/Contents/SharedSupport/Support/lib/
scriptmate (LoadError) from /Library/Application Support/TextMate/
Bundles/Perl.tmbundle/Support/PerlMate/perlmate.rb:1
Is it just me?
--
Andy Armstrong, hexten.net
Hi,
I have a small question.
If I write a command which should do something with highlighted text
of my current document I can specify within the myCommand.tmCommand
the plist key 'inputFormat' as 'xml' (e.g. Create HTML from Document).
OK.
But now I want to write a script which should be called by the Web
Preview option 'Pipe text through'. Here I don't get the content of my
current document with xml markups for syntax highlighting.
Is there a way without changing TM's source code to receive these xml markups?
Many thanks in advance !!!!!!!!!! ;)
Hans
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
This is a test signed message because subtleGradient insisted I send
one more to the list.
If you aren't subtleGradient, you can ignore this.
Oh, and I'll try and remember to stop sending signed messages to the
list in the future.
--
Kevin Ballard
http://kevin.sb.org
kevin(a)sb.org
http://www.tildesoft.com
Hi Haris
Trouble: I do the following.
1-quit and relaunch tm (just to be sure)
2-create a New from template GTD file, the default Sample is ok
3-save as untitled.gtd on the desktop
4-add some garbage text at the top of the file (before the first project).
(Now Haris you will say: my fault, since nothing is expected to
work with extraneous text. Anyway)
5-execute the Current Actions command; it works
perfectly.
6-click on an action in the HTML window: the WRONG action
is selected in the gdt window. The selected lined is off
by the number of extraneous added lines, so this must be some
simple problem in the ruby script. I know it's my fault, but
surely you know how to fix it easily.....
Request: what about recurring events/actions?
I know, you will say GTD is not for this kind of
stuff, we have remind (or iCal) etc etc, but, please?
Let me show you an example: a permanent project
"pay taxes". I can put in it all kind of recurrent taxes;
each one has a due date, which is the same every year;
moreover, I would like to remember about it in advance,
say, two weeks. It would be so nice to just write e.g.
2006-12-20+1Ya2W
which means, due on December 20, every year, please
start nagging me 2 weeks in advance.
Maybe this is pushing too much the GTD bundle? (but
it should certainly be a pleasure to code ;)
Thanks,
Piero
On Dec 5, 2006, at 10:23 AM, Lloyd Williams wrote:
> Kevin, I am sorry but I do not understand the two replies. Please
> explain. I am not a programmer. I am a writer who likes the power
> of TextMate. Thank you. Lloyd
Lloyd,
I am sympathetic: I too am mostly a writer who understands only a
little of what transpires on this list. That said, Kevin is
describing to you ways of getting from MarkDown/MultiMarkDown to PDF
using only free and open source materials. In this case, he is
recommending that you use a converter to transform your MarkDown
formatted files into LaTeX files. Think of Latex -- I hate doing all
the capitals, so you only get them once -- as another form of markup,
like HTML or MarkDown. It is a very precise form of markup long used
by many in the sciences for getting the kind of outputs that others
had access to only when word processers developed robust page-layout
capabilities became widely available.
There are a wide variety of Latex installations available, you need
only google Latex and Mac to discover them, or perhaps someone on
this list will point you to a package particularly easily adapted/
adopted by a newbie.
I can't help you there. I use Mellel when projects get to be a of
certain structure or size.
I do enjoy doing a lot of writing in TextMate using the MarkDown
formats, if only I could get some form of code-folding -- I've been
meaning to ask this list about the possibility of using two returns
as a way to cue the end of header and how one would include that
within the parsing language in the bundle. (One of my goals for next
year is to teach myself PERL -- I'm a folklorist, so PERL's language-
oriented abilities are useful in and of themselves.)
I hope this helps. My apologies for blurting out my own question in
the middle of my answer. I will re-post it if it doesn't make any
sense at another time on this list.
john
I googled for it but I didn't find the correct answer.
Is it possible to control TM via AppleScript à la
tell app "TextMate"
activate
end tell
tell app "System Events"
tell process "TextMate.app"
tell menu bar 1
tell menu bar item "Help"
tell menu "Help"
click menu item "Release Notes"
end tell
end tell
end tell
end tell
end tell
I tried several things but I couldn't find a solution and it seems to
me that this is not possible.
Many thanks for every hint.
-Hans
I'm starting to want to edit every possible piece of text in my
system with TextMate. I use DevonThinkPro for certain things, and
type a lot of stuff into its Rich Text page type, but when I then do
Edit in TextMate, it comes in as Plain Text. All I want from the
RichText is to occasionally make something bold or change the font
size. Is there a page type in TextMate that will let me do that and
then save it back to DevonThinkPro and look correct there?
Thanks,
Ernest
Greetings,
I'm in the process of evaluating TextMate. Needless to
say, great.
Some of my work involves Mathematica. I have this
ambitious notion that TM with TerminalMate
(eventually) can be used to interface with the M'ca
computational engine.
What's missing is a tmbundle to start. I'm assuming
getting to the point of just highlighting syntax is
doable.
Typically, efficient M'ca is Lispish, with recursive
headers, eg, Header1[Header2[Header3 ]]] And the
bracketing syntax is pretty well formed:
(term) parentheses for grouping
f[x] square brackets for functions
{a, b, c} curly braces for lists
v[[i]] double brackets for indexing
//
Can someone point me in the right direction wrt an
existing bundle that has similar syntax so that I can
independently figure this out?(MatLab, btw, is largely
imperative.)
Is this a waste of time I wonder?
It seems that people have had sporadic success with TM
in the functional space. Someone feel free to correct
me.
//
Also, does anyone have suggestions about navigating
between multiline functions in C++? The syntax
highlighting/function hopping does not work in those
cases.
Thanks!
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com
Hello. I have a tab trigger specified in latex, but it doesn't
appear to work any longer. It is set in the snippet to have a tab
trigger, and I am in the right scope, i believe (text.latex).
Moreover, it used to work. Is there some meta preference that I may
have turned off?
Kevin if it would be easier you may send it directly to my email at
wlw3(a)mac.com. Sorry for being so difficult. I do not understand why I
can read all the others and not your. I also can not figure how to
reply and keep it in the thread.
Thank you,
Lloyd
Will you please resend me your original response from Tue Dec 5
16:09:54 GMT 2006.
I do not have it and everyone else was quoting and referencing it.
Thank you,
Lloyd
Kevin,
I am reading these from the TxMt archives on the web with both
FireFox and Safari and every message you have posted has looks the
same as the one I sent to you. All the other messages are readable.
Thought you would want to know.
Lloyd
Yes this appears fine. Could you please resend your original
comments. Thank you,
Lloyd
Ok, I'm going to guess that my attached signature was causing a
problem. Something is scrubbing messages before they get to you - I
don't know if it's the listserver's digest mode, or if it's something
about your mailserver. In any case, please tell me if this message
appears fine.
On Dec 5, 2006, at 3:53 PM, Lloyd Williams wrote:
> Kevin if it would be easier you may send it directly to my email at
> wlw3 at mac.com. Sorry for being so difficult. I do not understand
why
> I can read all the others and not your. I also can not figure how
> to reply and keep it in the thread.
--
Kevin Ballard
http://kevin.sb.org
kevin at sb.orghttp://www.tildesoft.com
The following is how the message appears to me. I can read all the
other posts with out problem.
Kevin Ballard kevin at sb.org
Tue Dec 5 19:58:36 GMT 2006
* Previous message: [TxMt] Footer for Preview Print other than
Prince 5.1
* Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Skipped content of type multipart/alternative-------------- next part
--------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2432 bytes
Desc: not available
Url : http://comox.textdrive.com/pipermail/textmate/attachments/
20061205/bfe7519e/smime.bin
Hello Kevin,
Sorry for my confusion. I never got your message and still do not
have it. the only thing that came to me was the following:
Skipped content of type multipart/alternative-------------- next part
--------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2432 bytes
Desc: not available
Url : http://comox.textdrive.com/pipermail/textmate/attachments/
20061205/26e0bf1e/smime.bin
Kevin it seems from John's email that your response was full of
information I missed. If you or someone would please resend it. Thank
you.
James thank you for the info on MultiMarkdown I will look that up.
John thank you for your explanation. I feel like an idiot here. I am
still trying to learn how to respond to the email digest.
Skiadas thank you I will check out the links.
Thank you everyone for all your help and please excuse my lack of
experience and poor protocol.
Lloyd
Oookay.. I know this has to be easy :p but I can't figure it out.
My project drawer on one of my projects has suddenly decided to be on the
right side instead of the left. It always used to be on the left. I'm sure I
accidentally hit some key combination that did it-- but for the life of me I
can't find how to change it back and it's driving me insane :)
Anyone know how to fix? Thanks :)
How does Textmate use ruby (or how does it invoke it)?
I've got the 1.8.5 binary installed in /usr/local/bin/ and that's
definitely executable by me.
Thanks -
Jordan
Kevin replied December 5, 2006 10:10:42 AM CST:
It sounds like your ruby binary isn't executable by you.
On Dec 5, 2006, at 10:28 AM, Jordan von Kluck wrote:
As of late, anytime I use most any of the bundles items in TextMate I
get the following as output: "env: ruby: Permission denied".
I'm running the latest version of TextMate(r1324) on 10.3.9 and
haven't done anything wild and crazy to my ruby installation except
update it to 1.8.5 from the install that comes with 10.3.
I've tried setting a shell variable in TextMate for the proper
path to ruby and mucking around with the permissions and ownership of
ruby to no avail.
Does anyone have any idea what I've managed to break?
--
Kevin Ballard
http://kevin.sb.org
kevin(a)sb.org
http://www.tildesoft.com