Google Groups Home
Help | Sign in
Message from discussion ¿Atajo para cambiar de theme?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Ale Muñoz  
View profile
 More options May 9, 4:56 pm
From: "Ale Muñoz" <bomberstud...@gmail.com>
Date: Fri, 9 May 2008 22:56:18 +0200
Local: Fri, May 9 2008 4:56 pm
Subject: Re: [textmate-es] ¿Atajo para cambiar de theme?
2008/5/9 Choan Gálvez <choan.gal...@gmail.com>:

> ¿Sabéis si existe la posibilidad de configurar un atajo de teclado
> para hacer switch entre dos temas?

Existir no existe, pero AppleScript es tu amigo : )

Con un poco de paciencia y
http://www.apple.com/applescript/uiscripting/ deberías ser capaz de
hacerte un script que haga justo eso.

De hecho, aquí va el fruto de un ratin de trasteo:

tell application "System Events"
        activate application "TextMate"
        keystroke "," using {command down}
        tell application "System Events"
                tell process "TextMate"
                        click button "Fonts & Colors" of tool bar 1 of window 1
                        click pop up button 1 of window 1
                        keystroke "Cobalt"
                        keystroke return
                        keystroke "w" using {command down}
                end tell
        end tell
end tell

para elegir el tema "Cobalt". Supongo que no te costará mucho hacerte
un par de comandos para alternar entre temas...

P.D: Si, AppleScript es una mierda :P

--
Ale Muñoz
http://sofanaranja.com
http://bomberstudios.com


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google