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


umlauts in urls

2011-03-21 Thread Gregory Wiest
Hello,

Is there a way to get BBEdit's syntax checker to accept urls with umlauts in 
them?  There are addresses, like this one,

http://www.fräuleinhildebrand.de

which use umlauts. Spelling that address with www.fruuml;leinhildebrand.de is 
incorrect.

Greetings,
Gregory Wiest
http://www.gregorywiest.de




-- 
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: umlauts in urls

2011-03-21 Thread Walter Ian Kaye
At 08:04 p +0100 03/21/2011, Gregory Wiest didst inscribe upon an 
electronic papyrus:



Hello,

Is there a way to get BBEdit's syntax checker to accept urls with 
umlauts in them?  There are addresses, like this one,


http://www.fräuleinhildebrand.de

which use umlauts. Spelling that address with 
www.fruuml;leinhildebrand.de is incorrect.


Wrong encoding method. URL encoding uses %HH where HH is hexadecimal.
I believe it uses UTF-8.

Hmm, someone must've written a conversion script

--
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