Re: Need script or method to create a sitemap or site index

2014-05-12 Thread BBunny
Yes, you're correct. The original author (me) was asking how to create 
hierarchical html sitemaps. :-)

On Wednesday, December 11, 2013 7:19:57 AM UTC-8, Greg Raven wrote:

 I thought the original poster was asking about creating hierarchical HTML 
 site maps.

 On Wednesday, December 11, 2013 6:19:44 AM UTC-8, T Burger wrote:

 Folks, 

 I do not do it in BBedit, instead I use Sitemap Automator to create my 
 sitemap files. 
 You give it a url and it builds a sitemap for it. 
 https://www.macupdate.com/app/mac/20569/sitemap-automator 
 Maybe this will do what you want. 

 Thanks, 
 Ted 
 ***  Ted Burger   
 t...@tobsupport.com  * www.tobsupport.com 




-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
supp...@barebones.com rather than posting to the group.
Follow @bbedit on Twitter: http://www.twitter.com/bbedit

--- 
You received this message because you are subscribed to the Google Groups 
BBEdit Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Re: Need script or method to create a sitemap or site index

2014-05-12 Thread Lawrence San
If I can step back a bit, what is the typical purpose of automatically
generated sitemap files?

When I create site maps, I do so by hand in HTML, including only the
relevant (main, important, or section-entry) pages, organized by
navigational logic -- which is not always the same as the directory
organization of the site files. I assume that these auto-sitemap or index
tools being discussed here strictly follow the directory organization and
include everything (or everything down to a certain level you specify),
right? Does this have something to do with submitting those files to search
engines for indexing... or just as a starting point for hand-crafting a
sitemap for your visitors... or are there other uses I'm not aware of?

Lawrence San
Business Writing: Santhology.com
Cartoon Stories for Thoughtful People: Sanstudio.com



On Mon, May 12, 2014 at 1:28 PM, BBunny fran...@cherman.com wrote:

 Yes, you're correct. The original author (me) was asking how to create
 hierarchical html sitemaps. :-)


 On Wednesday, December 11, 2013 7:19:57 AM UTC-8, Greg Raven wrote:

 I thought the original poster was asking about creating hierarchical HTML
 site maps.

 On Wednesday, December 11, 2013 6:19:44 AM UTC-8, T Burger wrote:

 Folks,

 I do not do it in BBedit, instead I use Sitemap Automator to create my
 sitemap files.
 You give it a url and it builds a sitemap for it.
 https://www.macupdate.com/app/mac/20569/sitemap-automator
 Maybe this will do what you want.

 Thanks,
 Ted
 ***  Ted Burger  
 t...@tobsupport.com  * www.tobsupport.com


  --
 This is the BBEdit Talk public discussion group. If you have a
 feature request or would like to report a problem, please email
 supp...@barebones.com rather than posting to the group.
 Follow @bbedit on Twitter: http://www.twitter.com/bbedit

 ---
 You received this message because you are subscribed to the Google Groups
 BBEdit Talk group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to bbedit+unsubscr...@googlegroups.com.
 To post to this group, send email to bbedit@googlegroups.com.


-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
supp...@barebones.com rather than posting to the group.
Follow @bbedit on Twitter: http://www.twitter.com/bbedit

--- 
You received this message because you are subscribed to the Google Groups 
BBEdit Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Re: Need script or method to create a sitemap or site index

2014-05-12 Thread Greg Raven
They used to be in vogue for giving visitors more-or-less direct access to 
each page in a site. They were particularly useful back in the days when 
search engines were just getting started and you wanted to make certain 
that each page was linked somewhere. IIRC, we were still running OS 9 back 
then. Of course, back then BBEdit offered the ability to create a one-page 
linked listing of all pages in a site (no hierarchy), using the page 
titles. Was sorry to see that one go, too.

These utilities were also helpful for seeing each of your page titles at 
once, as this helped make certain you didn't have pages with generic or 
missing titles, and if you had a page-naming scheme, the incorrectly-named 
pages would stand out so you could fix them.

On Monday, May 12, 2014 12:16:19 PM UTC-7, San wrote:

 If I can step back a bit, what is the typical purpose of automatically 
 generated sitemap files?

 When I create site maps, I do so by hand in HTML, including only the 
 relevant (main, important, or section-entry) pages, organized by 
 navigational logic -- which is not always the same as the directory 
 organization of the site files. I assume that these auto-sitemap or index 
 tools being discussed here strictly follow the directory organization and 
 include everything (or everything down to a certain level you specify), 
 right? Does this have something to do with submitting those files to search 
 engines for indexing... or just as a starting point for hand-crafting a 
 sitemap for your visitors... or are there other uses I'm not aware of? 

 Lawrence San
 Business Writing: Santhology.com
 Cartoon Stories for Thoughtful People: Sanstudio.com



 On Mon, May 12, 2014 at 1:28 PM, BBunny fra...@cherman.com 
 javascript:wrote:

 Yes, you're correct. The original author (me) was asking how to create 
 hierarchical html sitemaps. :-)


 On Wednesday, December 11, 2013 7:19:57 AM UTC-8, Greg Raven wrote:

 I thought the original poster was asking about creating hierarchical 
 HTML site maps.

 On Wednesday, December 11, 2013 6:19:44 AM UTC-8, T Burger wrote:

 Folks, 

 I do not do it in BBedit, instead I use Sitemap Automator to create my 
 sitemap files. 
 You give it a url and it builds a sitemap for it. 
 https://www.macupdate.com/app/mac/20569/sitemap-automator 
 Maybe this will do what you want. 

 Thanks, 
 Ted 
 ***  Ted Burger   
 t...@tobsupport.com  * www.tobsupport.com 


  -- 
 This is the BBEdit Talk public discussion group. If you have a 
 feature request or would like to report a problem, please email
 sup...@barebones.com javascript: rather than posting to the group.
 Follow @bbedit on Twitter: http://www.twitter.com/bbedit

 --- 
 You received this message because you are subscribed to the Google Groups 
 BBEdit Talk group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to bbedit+un...@googlegroups.com javascript:.
 To post to this group, send email to bbe...@googlegroups.comjavascript:
 .




-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
supp...@barebones.com rather than posting to the group.
Follow @bbedit on Twitter: http://www.twitter.com/bbedit

--- 
You received this message because you are subscribed to the Google Groups 
BBEdit Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Re: Need script or method to create a sitemap or site index

2013-12-11 Thread Greg Raven
Matterform Media used to offer a great one under OS9, but it didn't make 
the transition to OS X. Searching the web for hierarchical HTML site map 
shows there to be not many options, and none of them that I found actually 
worked.

Google still advises you to use a hierarchical site map, both to ensure 
that all pages on your site are reachable, and to flatten the hierarchy of 
your site for crawling purposes. There's no way, though, that I'm going to 
start with BBEdit's indented text listing of files and manually add links!

On Saturday, January 15, 2011 12:02:12 AM UTC-8, BBunny wrote:

 The Misc menu in previous versions of BBEdit contained an index 
 feature, which generated a hierarchical index—in other words, a sitemap 
 —of a Web site, with live links to the pages. With version 9.6, that 
 feature has been eliminated. Can anyone suggest a script or other easy 
 way of replacing that function? Thanks much.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
supp...@barebones.com rather than posting to the group.
Follow @bbedit on Twitter: http://www.twitter.com/bbedit

--- 
You received this message because you are subscribed to the Google Groups 
BBEdit Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Re: Need script or method to create a sitemap or site index

2013-12-11 Thread Ted Burger
Folks,

I do not do it in BBedit, instead I use Sitemap Automator to create my sitemap 
files.
You give it a url and it builds a sitemap for it.
https://www.macupdate.com/app/mac/20569/sitemap-automator
Maybe this will do what you want.

Thanks,
Ted
***  Ted Burger  
t...@tobsupport.com  * www.tobsupport.com


-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
supp...@barebones.com rather than posting to the group.
Follow @bbedit on Twitter: http://www.twitter.com/bbedit

--- 
You received this message because you are subscribed to the Google Groups 
BBEdit Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Re: Need script or method to create a sitemap or site index

2013-12-11 Thread Greg Raven
I thought the original poster was asking about creating hierarchical HTML 
site maps.

On Wednesday, December 11, 2013 6:19:44 AM UTC-8, T Burger wrote:

 Folks, 

 I do not do it in BBedit, instead I use Sitemap Automator to create my 
 sitemap files. 
 You give it a url and it builds a sitemap for it. 
 https://www.macupdate.com/app/mac/20569/sitemap-automator 
 Maybe this will do what you want. 

 Thanks, 
 Ted 
 ***  Ted Burger   
 t...@tobsupport.com javascript:  * www.tobsupport.com 




-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
supp...@barebones.com rather than posting to the group.
Follow @bbedit on Twitter: http://www.twitter.com/bbedit

--- 
You received this message because you are subscribed to the Google Groups 
BBEdit Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Re: Need script or method to create a sitemap or site index

2013-12-09 Thread Robert A. Rosenberg
What is wrong with http://www.xml-sitemaps.com/? It creates the Suite 
Maps you are looking for.




At 13:32 -0800 on 12/08/2013, captkirk wrote about Re: Need script or 
method to create a sitemap or site index:


I looked at all the suggestions posted and none really fit the bill. 
Google searches have HTML 'displayable' and Google XML search 
submission site maps all mixed up, as do a lot of the suggestions on 
this thread.


Any new info on this?

On Thursday, March 24, 2011 1:03:00 AM UTC-4, BBunny wrote:

Be that as it may, I'm asking if a method has been mentioned here that
would create a sitemap in BBEdit (or terminal), and, if so, exactly
what one would enter, and where. Thanks.

--
This is the BBEdit Talk public discussion group. If you have a
feature request or would like to report a problem, please email
supp...@barebones.com rather than posting to the group.
Follow @bbedit on Twitter: 
http://www.twitter.com/bbedithttp://www.twitter.com/bbedit


---
You received this message because you are subscribed to the Google 
Groups BBEdit Talk group.
To unsubscribe from this group and stop receiving emails from it, 
send an email to bbedit+unsubscr...@googlegroups.com.

To post to this group, send email to bbedit@googlegroups.com.


--
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email

supp...@barebones.com rather than posting to the group.
Follow @bbedit on Twitter: http://www.twitter.com/bbedit

--- 
You received this message because you are subscribed to the Google Groups BBEdit Talk group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Re: Need script or method to create a sitemap or site index

2013-12-08 Thread captkirk
I looked at all the suggestions posted and none really fit the bill. Google 
searches have HTML 'displayable' and Google XML search submission site maps 
all mixed up, as do a lot of the suggestions on this thread.

Any new info on this?

On Thursday, March 24, 2011 1:03:00 AM UTC-4, BBunny wrote:

 Be that as it may, I'm asking if a method has been mentioned here that 
 would create a sitemap in BBEdit (or terminal), and, if so, exactly 
 what one would enter, and where. Thanks. 


-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
supp...@barebones.com rather than posting to the group.
Follow @bbedit on Twitter: http://www.twitter.com/bbedit

--- 
You received this message because you are subscribed to the Google Groups 
BBEdit Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Re: Need script or method to create a sitemap or site index

2011-03-24 Thread François Schiettecatte
There are online tools for doing this, why not use there, I did a quick google 
search and found this:

http://www.xml-sitemaps.com/

Here a bunch of other links that a colleague collected a while back:

1. Server-side tool kits available for 32/64 bit OS for Windows and Linux, 
written in PHP, Perl and Python. Two examples:
a. Paid: http://www.softswot.com/sitemapinfo.php
b. Free: http://www.smart-it-consulting.com/article.htm?node=154amp;page=82

 
2. Extensions and plugins for CMS, development platforms and publishing 
platforms such as .Net, Drupal and WordPress. Two examples:
a. Paid: http://www.pc4people.com/products.php?cat=57
b. Free: http://drupal.org/project/xmlsitemap 


3. Applications that can be downloaded for free, or for a fee. Two examples:
a. Paid: http://www.sitemappro.com/
b. Free: http://www.vigos.com/products/gsitemap/


4. On-line services that will ingest your web site and create an 
XML-Sitemap. Two examples:
a. Paid: http://www.autositemap.com/
b. Free: http://www.xml-sitemaps.com/


5. Class libraries available for Java, Perl, ASP and PHP. Two examples:
a. Free: http://www.phpclasses.org/browse/package/2612.html
b. Free: http://www.iteam5.net/francesco/sitemap_gen/



Cheers

François

On Mar 24, 2011, at 1:03 AM, BBunny wrote:

 Be that as it may, I'm asking if a method has been mentioned here that
 would create a sitemap in BBEdit (or terminal), and, if so, exactly
 what one would enter, and where. Thanks.
 
 On Mar 20, 3:57 pm, Robert Huttinger roberthuttin...@gmail.com
 wrote:
 it's true that AppleScript may be a new Lang to learn, but it's pretty  
 damn easy with millions of example code on the web. it may be a lot  
 easierthan you think!
 
 Sent from my Apple ][
 
 On Mar 20, 2011, at 12:05 PM, Tim Gray tg...@125px.com wrote:
 
 
 
 
 
 
 
 On Jan 15, 2011 at 12:02 AM -0800, BBunny wrote:
 The Misc menu in previous versions of BBEdit contained an index
 feature, which generated a hierarchical index—in other words, a si
 temap
 —of a Web site, with live links to the pages. With version 9.6, t
 hat
 feature has been eliminated. Can anyone suggest a script or other  
 easy
 way of replacing that function? Thanks much.
 
 I think I could write up a script that does this pretty easily.  The  
 only problem is that BBEdit only provides two methods for unix  
 scripts, 'filters' and 'scripts'.  Scripts run in Terminal, so it's  
 kind of difficult to get the output of said script into a new BBEdit  
 window in an automated fashion. Filters run on an existing window  
 and replace the contents.
 
 A third option is to call a unix script from an Applescript.  
 Applescript can obviously open new BBEdit windows, etc., but its  
 kind of kludgy to have a parent Applescript call on separate unix  
 script.  You'd have to install two files, etc.  Of course, the  
 obvious solution would be to write a 100% Applescript script, but  
 for the life of me I can't master Applescript.
 
 So, I can provide you with a Python script that you can run from the  
 command line.  You feed it a directory and it will make an index  
 page for the html files in that directory.  Would that be useful?
 
 I wish there was tighter integration between BBEdit and scripting  
 languages, like Python and Perl.  But there isn't.  If there was,  
 extending BBEdit to do tasks like this would be so much easier.  
 Instead, you have to wrestle with Applescript to do anything of the  
 sort.  It's one of the features I'm really jealous that Textmate has.
 
 --
 You received this message because you are subscribed to the BBEdit  
 Talk discussion group on Google Groups.
 To post to this group, send email to bbedit@googlegroups.com
 To unsubscribe from this group, send email to
 bbedit+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/bbedit?hl=en
 If you have a feature request or would like to report a problem,  
 please email supp...@barebones.com rather than posting to the group.
 Follow @bbedit on Twitter: http://www.twitter.com/bbedit
 
 -- 
 You received this message because you are subscribed to the 
 BBEdit Talk discussion group on Google Groups.
 To post to this group, send email to bbedit@googlegroups.com
 To unsubscribe from this group, send email to
 bbedit+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/bbedit?hl=en
 If you have a feature request or would like to report a problem, 
 please email supp...@barebones.com rather than posting to the group.
 Follow @bbedit on Twitter: http://www.twitter.com/bbedit

-- 
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at

Re: Need script or method to create a sitemap or site index

2011-03-23 Thread BBunny
G.T., thanks for the link. I spent several hours today working with it
(I'm not a command-line person—can you tell?). It works well, but it's
just not user-friendly enough for my level of knowledge. But I
appreciate the thought.

On Mar 20, 10:35 am, G. T. Stresen-Reuter tedmaster...@gmail.com
wrote:
 On Mar 20, 2011, at 4:05 PM, Tim Gray wrote:

  On Jan 15, 2011 at 12:02 AM -0800, BBunny wrote:
  The Misc menu in previous versions of BBEdit contained an index
  feature, which generated a hierarchical index—in other words, a sitemap
  —of a Web site, with live links to the pages. With version 9.6, that
  feature has been eliminated. Can anyone suggest a script or other easy
  way of replacing that function? Thanks much.

 Probably not exactly what you want (and may require a web server) but you 
 might look at this:

 http://www.linklint.org/

 There are many other spiders out there and nearly all of them produce some 
 kind of report that could be tweaked to make a sitemap (I think).

 Ted

-- 
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.
Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Need script or method to create a sitemap or site index

2011-03-23 Thread BBunny
Forgive my lack of experience with scripts, but are we still talking
about something that will create a site index? If so, can you tell me
exactly what I would enter, and where? Thanks.

On Mar 22, 8:40 am, Tim Gray tg...@125px.com wrote:
 On Mar 22, 2011 at 08:52 AM -0600, LuKreme wrote:

  /bin/myscript | bbedit

  Works for me

 Not if you run your script from the #! menu in BBEdit and have it Run in
 Terminal set.

-- 
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.
Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Need script or method to create a sitemap or site index

2011-03-23 Thread Christopher Stone
On Mar 21, 2011, at 01:36, Tim Gray wrote:
 Yes, I remember thinking of this solution.  Unfortunately (at the time at 
 least), BBEdit locks out this kind of behavior when called from a script run 
 from the Unix menu.  I'll try it again tomorrow.
 
 I seem to recall having a discussion about this with support at some point, 
 but can't find the email in my archive.

__

Hey Tim,

http://appscript.sourceforge.net/

You can bridge all of BBEdit's Applescript dictionary to Python or Ruby.

I haven't fooled with this, but others have extolled the virtues of appscript.

--
Best Regards,
Chris

-- 
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.
Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Need script or method to create a sitemap or site index

2011-03-22 Thread LuKreme
/bin/myscript | bbedit 

Works for me

Sent from my iPad

On Mar 20, 2011, at 10:05, Tim Gray tg...@125px.com wrote:

 Scripts run in Terminal, so it's kind of difficult to get the output of said 
 script into a new BBEdit window in an automated fashion

-- 
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.
Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Need script or method to create a sitemap or site index

2011-03-22 Thread Tim Gray

On Mar 22, 2011 at 08:52 AM -0600, LuKreme wrote:

/bin/myscript | bbedit

Works for me


Not if you run your script from the #! menu in BBEdit and have it Run in 
Terminal set.


--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Need script or method to create a sitemap or site index

2011-03-21 Thread Rich Siegel
On Monday, March 21, 2011, Charlie Garrison 
garri...@zeta.org.au wrote:


FRONT_DOC=`osascript -e 'tell application BBEdit to get POSIX 
path of ((file of front document) as string)'`


So, not built-in to BBEdit, but just a one-liner to add to existing scripts.


When you run a script or filter from the #! menu, BBEdit sets up 
some variables in the environment, one of which is BB_DOC_PATH, 
the path to the front document. (This was introduced in 9.3, so 
you can find more details in the 9.3 change notes at 
http://www.barebones.com/support/bbedit/arch_bbedit93.html, as 
well as in the user manual.)


If you're running a script outside of BBEdit, then the example 
above is definitely useful and helpful.


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.


--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Need script or method to create a sitemap or site index

2011-03-21 Thread Tim Gray

On Mar 21, 2011 at 08:27 AM -0400, Rich Siegel wrote:
When you run a script or filter from the #! menu, BBEdit sets up some 
variables in the environment, one of which is BB_DOC_PATH, the path to the 
front document.


As far as I can tell, these variables are only implemented for filters and 
not scripts.  Note, I run my scripts in Terminal, which might affect this.


Scratch that - if I set scripts to not run in Terminal, I do indeed pick up 
the right variables.  Thanks.


--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Need script or method to create a sitemap or site index

2011-03-20 Thread Tim Gray

On Jan 15, 2011 at 12:02 AM -0800, BBunny wrote:

The Misc menu in previous versions of BBEdit contained an index
feature, which generated a hierarchical index—in other words, a sitemap
—of a Web site, with live links to the pages. With version 9.6, that
feature has been eliminated. Can anyone suggest a script or other easy
way of replacing that function? Thanks much.


I think I could write up a script that does this pretty easily.  The only 
problem is that BBEdit only provides two methods for unix scripts, 'filters' 
and 'scripts'.  Scripts run in Terminal, so it's kind of difficult to get 
the output of said script into a new BBEdit window in an automated fashion. 
Filters run on an existing window and replace the contents.


A third option is to call a unix script from an Applescript.  Applescript 
can obviously open new BBEdit windows, etc., but its kind of kludgy to have 
a parent Applescript call on separate unix script.  You'd have to install 
two files, etc.  Of course, the obvious solution would be to write a 100% 
Applescript script, but for the life of me I can't master Applescript.


So, I can provide you with a Python script that you can run from the command 
line.  You feed it a directory and it will make an index page for the html 
files in that directory.  Would that be useful?


I wish there was tighter integration between BBEdit and scripting languages, 
like Python and Perl.  But there isn't.  If there was, extending BBEdit to 
do tasks like this would be so much easier.  Instead, you have to wrestle 
with Applescript to do anything of the sort.  It's one of the features I'm 
really jealous that Textmate has.


--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Need script or method to create a sitemap or site index

2011-03-20 Thread G. T. Stresen-Reuter
On Mar 20, 2011, at 4:05 PM, Tim Gray wrote:

 On Jan 15, 2011 at 12:02 AM -0800, BBunny wrote:
 The Misc menu in previous versions of BBEdit contained an index
 feature, which generated a hierarchical index—in other words, a sitemap
 —of a Web site, with live links to the pages. With version 9.6, that
 feature has been eliminated. Can anyone suggest a script or other easy
 way of replacing that function? Thanks much.

Probably not exactly what you want (and may require a web server) but you might 
look at this:

http://www.linklint.org/

There are many other spiders out there and nearly all of them produce some kind 
of report that could be tweaked to make a sitemap (I think).

Ted

-- 
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.
Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Need script or method to create a sitemap or site index

2011-03-20 Thread Charlie Garrison

Good afternoon,

On 20/03/11 at 12:05 PM -0400, Tim Gray tg...@125px.com wrote:

I wish there was tighter integration between BBEdit and 
scripting languages, like Python and Perl.  But there isn't.  
If there was, extending BBEdit to do tasks like this would be 
so much easier.  Instead, you have to wrestle with Applescript 
to do anything of the sort.  It's one of the features I'm 
really jealous that Textmate has.


What sort of integration is missing? What does Textmate do that 
BBEdit doesn't? I run unix scripts (perl in my case) from BBEdit 
every day. Between the Run Script command and worksheets ( 
filters as you mentioned) I don't feel like I'm missing any functionality.



Charlie

--
   Ꮚ Charlie Garrison ♊ garri...@zeta.org.au

O ascii ribbon campaign - stop html mail - www.asciiribbon.org
〠  http://www.ietf.org/rfc/rfc1855.txt

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Need script or method to create a sitemap or site index

2011-03-20 Thread Tim Gray

On Mar 21, 2011 at 12:57 PM +1100, Charlie Garrison wrote:
What sort of integration is missing? What does Textmate do that BBEdit 
doesn't? I run unix scripts (perl in my case) from BBEdit every day. 
Between the Run Script command and worksheets ( filters as you mentioned) 
I don't feel like I'm missing any functionality.


I'd love to be able to call a Unix script (not a filter) that picks what the 
active file is and does something with it.  I don't mean munge the files 
contents, but use the open text file as an argument to a command line 
utility (or whatever else you might do in shell script).  Maybe this is a 
feature that has been added - the last time I checked, scripts were passed 
no real information about what was going on in the GUI.  As far as I know, 
the only way to do this is to write a wrapper Applescript that calls your 
Unix script, with any BBEdit interaction takes place in the Applescript 
layer.


For example, I write a lot of Latex files.  I prefer to do that in BBEdit. 
When it comes time to run the file I'm working on through pdflatex, I can't 
just write a shell script that uses the active document's file path as an 
argument while calling pdflatex.


If you are interested in seeing more, CompileTeX is a suite that someone 
wrote a while back that does exactly this.  The core of the interaction with 
latex is through a shell script, but it has many Applescript bits that call 
the main shell script with various options.


Another example - what if you wanted to copy the currently open file to a 
specified location using a shell script (I know you can do this via 
Applescript).  How would you go about doing that with either Unix filters or 
scripts?


I wish I had more examples ready for you, but over the years I've tried to 
do various things, ran into this, gave up, and forgotten about them.  I will 
say that I am happy with filters and scripts for 90% of the stuff I do.


Hopefully I'm wrong and this kind of thing can now be done...

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Need script or method to create a sitemap or site index

2011-01-19 Thread BBunny
I agree—I found the site index a very useful feature. If they don't
want to include it in the product, at least they could make it a user-
activated option. I wasn't aware of the folder listing feature, but
having to insert links manually sounds tedious. I'll check it out,
though. Thanks for the info.

On Jan 18, 1:38 am, Stefano stefano@gmail.com wrote:
 On 15 Gen, 09:02, BBunny fran...@cherman.com wrote:

  The Misc menu in previous versions of BBEdit contained an index
  feature, which generated a hierarchical index—in other words, a sitemap
  —of a Web site, with live links to the pages. With version 9.6, that
  feature has been eliminated. Can anyone suggest a script or other easy
  way of replacing that function? Thanks much.

 The Misc menu on the Markup menu, and the commands on it, have
 outlived their usefulness and been removed.
 I can't just understand their debatable usefulness. I think Index
 Document, Index Folder and Site were rather useful instead.
 Maybe you know, now there is a Folder Listing (Edit - Insert -
 Folder Listing). But then you have to add links with a careful search
 and replace.

-- 
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.
Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Need script or method to create a sitemap or site index

2011-01-19 Thread Stefano
On 19 Gen, 07:21, BBunny fran...@cherman.com wrote:
 I agree—I found the site index a very useful feature. If they don't
 want to include it in the product, at least they could make it a user-
 activated option. I wasn't aware of the folder listing feature, but
 having to insert links manually sounds tedious. I'll check it out,
 though. Thanks for the info.

... or you could try to run 8.7.2 with the old Misc Menu. As I
did ... .-)

-- 
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.
Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Need script or method to create a sitemap or site index

2011-01-18 Thread Stefano
On 15 Gen, 09:02, BBunny fran...@cherman.com wrote:
 The Misc menu in previous versions of BBEdit contained an index
 feature, which generated a hierarchical index—in other words, a sitemap
 —of a Web site, with live links to the pages. With version 9.6, that
 feature has been eliminated. Can anyone suggest a script or other easy
 way of replacing that function? Thanks much.

The Misc menu on the Markup menu, and the commands on it, have
outlived their usefulness and been removed.
I can't just understand their debatable usefulness. I think Index
Document, Index Folder and Site were rather useful instead.
Maybe you know, now there is a Folder Listing (Edit - Insert -
Folder Listing). But then you have to add links with a careful search
and replace.

-- 
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.
Follow @bbedit on Twitter: http://www.twitter.com/bbedit