can TW open a page via http link?

18 views
Skip to first unread message

John Johnson

unread,
Apr 10, 2013, 5:33:48 PM4/10/13
to textwr...@googlegroups.com
I'm guessing "no," but thought I'd ask..I can't get it to do it..

Thanks!

John

Steve

unread,
Apr 10, 2013, 5:45:13 PM4/10/13
to textwr...@googlegroups.com
What exactly do you want it to do? To open a remote document's HTML, no, you can't. If you have write access to that file, and you can access it via FTP, TextWrangler DOES can open files remotely via FTP/SFTP.

Otherwise, you may want to just View Source the page in question (or use curl/wget) to pull down the HTML and then open the resulting file in TextWrangler.

John Johnson

unread,
Apr 10, 2013, 5:54:46 PM4/10/13
to textwr...@googlegroups.com
basically I was hoping to grab a web page's source code by opening the web address of that page in text wrangler as a shorter way of getting the source code

thank you


--
--
You received this message because you are subscribed to the
"TextWrangler Talk" discussion group on Google Groups.
To post to this group, send email to textwr...@googlegroups.com
To unsubscribe from this group, send email to
textwrangler...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/textwrangler?hl=en
If you have a feature request or would like to report a problem,
please email "sup...@barebones.com" rather than posting to the group.
---
You received this message because you are subscribed to the Google Groups "TextWrangler Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to textwrangler...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Kendall Conrad

unread,
Apr 10, 2013, 7:15:36 PM4/10/13
to textwr...@googlegroups.com
You could write some AppleScript that would ask the user for the URL, then run a command using wget or curl to download the source from that URL and either insert it into the current document or create a new document out of it. It wouldn't require much to do.

Rich Siegel

unread,
Apr 10, 2013, 7:16:36 PM4/10/13
to textwr...@googlegroups.com
On Wednesday, April 10, 2013, John Johnson <cr8...@gmail.com> wrote:

> basically I was hoping to grab a web page's source code by opening the web
> address of that page in text wrangler as a shorter way of getting the
> source code

File -> Open File by Name -> enter URL -> hit Open

or, from the command line (after installing the command line tools):

edit http://www.barebones.com/ (for example)

or (also from the command line)

curl http://www.barebones.com/ | edit

R.
--
Rich Siegel Bare Bones Software, Inc.
<sie...@barebones.com> <http://www.barebones.com/>

Someday I'll look back on all this and laugh... until they sedate me.

Reply all
Reply to author
Forward
0 new messages