My apologies if this has been asked before but I hadn't seen it...
Is there a way to use TextMate to View Source in Safari (or any browser for that matter)? Gosh would this be handy, I have a safari plugin that at least shows the source in color, but of course, anything I can do in TextMate is better!
Thanks, Ray
On 10 Mar 2006, at 19:41, Raymond Brigleb wrote:
My apologies if this has been asked before but I hadn't seen it...
Is there a way to use TextMate to View Source in Safari (or any browser for that matter)? Gosh would this be handy, I have a safari plugin that at least shows the source in color, but of course, anything I can do in TextMate is better!
Thanks, Ray --
Here is mine for Safari. Put it in "~/Library/Scripts/Applications/Safari" to use it from script menu. (Btw, Fastscript[1] is a replacement for the Script menu that add keyboard shortcuts, there's a free lite version.) Or you can launch it with Quickeys, QuickSilver, LaunchBar, etc.
Camino and Firefox are totally different when it comes to applescript...
[1]http://www.red-sweater.com/fastscripts/index.html
-- Fred
On 10 Mar 2006, at 18:41, Raymond Brigleb wrote:
My apologies if this has been asked before but I hadn't seen it...
Is there a way to use TextMate to View Source in Safari (or any browser for that matter)? Gosh would this be handy, I have a safari plugin that at least shows the source in color, but of course, anything I can do in TextMate is better!
Thanks, Ray --
Raymond Brigleb, Needmore Designs http://needmoredesigns.com/
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
You can view source in Safari and then use the edit in TextMate command (ctrl-cmd-e). Best, Mark
_________________ Mark Eli Kalderon Department of Philosophy University College London Gower Street London WC1E 6BT
Dept webpage: http://www.ucl.ac.uk/philosophy Personal wepage: http://www.kalderon.demon.co.uk
On 3/11/06, Mark Eli Kalderon m.kalderon@ucl.ac.uk wrote:
You can view source in Safari and then use the edit in TextMate command (ctrl-cmd-e). Best, Mark
That does not work for me unfortunately. I just get a system alert when I attempt to edt Safari source in TextMate.
Richard
Did you pull up the source in Safari first with option-command-U before sending it to TextMate?
Best, Mark On 13 Mar 2006, at 10:19, Richard Sandilands wrote:
On 3/11/06, Mark Eli Kalderon m.kalderon@ucl.ac.uk wrote:
You can view source in Safari and then use the edit in TextMate command (ctrl-cmd-e). Best, Mark
That does not work for me unfortunately. I just get a system alert when I attempt to edt Safari source in TextMate.
Richard
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 3/13/06, Mark Eli Kalderon m.kalderon@ucl.ac.uk wrote:
Did you pull up the source in Safari first with option-command-U before sending it to TextMate?
Yeah, that's exactly what I did. I can edit text boxes in forms in Safari using the 'edit in textmate' command but not send the source over. Strange.
Richard
Richard Sandilands infoarts@gmail.com wrote:
I can edit text boxes in forms in Safari using the 'edit in textmate' command but not send the source over. Strange.
Same thing here [Safari Version 2.0.3 (417.9.2)] and [Shiira 1.2.1 (build060303)]
On Mar 13, 2006, at 2:19 AM, Richard Sandilands wrote:
On 3/11/06, Mark Eli Kalderon m.kalderon@ucl.ac.uk wrote:
You can view source in Safari and then use the edit in TextMate command (ctrl-cmd-e). Best, Mark
That does not work for me unfortunately. I just get a system alert when I attempt to edt Safari source in TextMate.
That's because the source field is not editable. The source to the Edit In TextMate bundle is in the TextMate svn repository - go look at it. I bet you'll find a line checking the editable status of the text field - disable that line.
On 14.03.2006, at 10:37, Kevin Ballard wrote:
That's because the source field is not editable. The source to the Edit In TextMate bundle is in the TextMate svn repository - go look at it. I bet you'll find a line checking the editable status of the text field - disable that line.
Or install an input manager like Safari Stand that let's you edit the source and apply changes to the site. Can come in handy sometimes.
Stan.
On 14 Mar 2006, at 10:22, Soryu wrote:
On 14.03.2006, at 10:37, Kevin Ballard wrote:
That's because the source field is not editable. The source to the Edit In TextMate bundle is in the TextMate svn repository - go look at it. I bet you'll find a line checking the editable status of the text field - disable that line.
Or install an input manager like Safari Stand that let's you edit the source and apply changes to the site. Can come in handy sometimes.
Stan.
Sorry, I have Safari Stand installed that's why it worked for me. All the best, Mark
_________________ Mark Eli Kalderon Department of Philosophy University College London Gower Street London WC1E 6BT
Dept webpage: http://www.ucl.ac.uk/philosophy Personal wepage: http://www.kalderon.demon.co.uk
On 14/3/2006, at 22:37, Caio Chassot wrote:
You can view source in Safari and then use the edit in TextMate command (ctrl-cmd-e). Best, Mark
I can't use ctrl-cmd-e at all. Any pointers? Is it supposed to be a service?
There was a service long ago, but since it locked the calling application, it was not always useful (since calling it from a browser made the browser unusable while editing the text).
So now there is an input manager [1]. This is generally better, but still not perfect (see the install instructions for caveats).
As Kevin implied, it does indeed check if the text field is read- only, and does not work in that case. This is the intended behavior, but not desired by all users, I know.
[1] http://macromates.com/textmate/manual/ using_textmate_from_terminal#cocoa_text_fields
Thanks for the tips, everyone!
While I'll probably stick to SafariSource and Xyle Scope for now, I was actually really happy to learn that you could use TextMate to edit a text area in Safari. I've always wanted to do that! Too bad it seems to lock up Safari while you're editing, that kinda makes me nervous.
Cheers, Ray