Re: Updating Website Content by Users - Slightly O.T

2011-06-22 Thread newtonp...@gmail.com
My 2-cents - and these are just my opinions as an engineer so please
no flaming :)

1) I like both WordPress and Drupal
2) I am a Drupal advocate, however, in the following cases (including
my own consulting work):

a) if you need to lots of custom things
b) if you are fluent in php and are reasonably savvy in HTML and CSS
c) if your requirements go beyond those of blogs and simpler web apps

Again, no reason for people to take issue since these are just my
personal views.

See: http://drupal.org/

But note that there are many more WordPress sites - there are reasons
for this, mostly having to do (IMHO) with ease-of-use for less
technical people.  Again, just my opinion.

In many ways, Drupal's raison d 'etre is the use of modules (and there
many thousands) for doing all kinds of things.  WordPress does this,
too, but in my experience is more difficult to customize.

Both provide:

1) abstraction layer mysql (so no need to deal directly with DB - this
means that you never deal directly with mysql but use Drupal functions
(in the rare case that you need to).
2) have many layers of security, optimization and solid backend
infrastructure

Note that Drupal 7 is a huge step forward in this space.

Finally, I use Drupal for even for simplest sites - even those that
have no DB requirements.  Security and ease-of-mounting and so on.

Many hosting service offer "one-click" installs of either CMS (AN
Hosting is one).

I know several non-tech people that have mounted very credible sites
(some with advanced stuff like e-commerce) by the one-click method.

PM me is you want to know more - happy to provide guidance and advice.

S

On Jun 23, 1:40 am, Steve deRosier  wrote:
> You're looking for a content management system, or CMS.  There's lots
> out there.  I've used Drupal extensively and it's both easy and
> powerful.  Joomla is another one I've used, more "publishing" oriented
> if you will.  Then if you're looking blogish: wordpress has both
> hosted and software options.
>
> Your question is frankly too vauge to really give a good answer.  "it
> depends" is the best anyone with any honesty and experience could give
> you from what you ask.  Sometimes educating yourself a bit so you can
> figure out what your needs are and what the right questions to ask in
> your situation is the best plan.
>
> A list of various CMSs:https://secure.wikimedia.org/wikipedia/en/wiki/Cms_list
>
> - Steve
>
>
>
> On Wed, Jun 22, 2011 at 8:22 PM, Jack Stewart  wrote:
> > I would very much appreciate any thoughts I could get from this bastion of
> > experience on the best approach to designing a website which includes
> > permitting selected users to update/modify content only.
>
> > I want a small handful of involved users to be able to update content only
> > without disrupting site structure.
>
> > Thank you very much -- Jack
>
> > --
> > 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
> > 
> > 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: 

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

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: 


Re: Updating Website Content by Users - Slightly O.T

2011-06-22 Thread Steve deRosier
You're looking for a content management system, or CMS.  There's lots
out there.  I've used Drupal extensively and it's both easy and
powerful.  Joomla is another one I've used, more "publishing" oriented
if you will.  Then if you're looking blogish: wordpress has both
hosted and software options.

Your question is frankly too vauge to really give a good answer.  "it
depends" is the best anyone with any honesty and experience could give
you from what you ask.  Sometimes educating yourself a bit so you can
figure out what your needs are and what the right questions to ask in
your situation is the best plan.

A list of various CMSs:
https://secure.wikimedia.org/wikipedia/en/wiki/Cms_list

- Steve

On Wed, Jun 22, 2011 at 8:22 PM, Jack Stewart  wrote:
> I would very much appreciate any thoughts I could get from this bastion of
> experience on the best approach to designing a website which includes
> permitting selected users to update/modify content only.
>
> I want a small handful of involved users to be able to update content only
> without disrupting site structure.
>
> Thank you very much -- Jack
>
> --
> 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
> 
> 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: 
>

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

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: 


Re: Updating Website Content by Users - Slightly O.T

2011-06-22 Thread BeeRich
Have them modify only shtml ssh include files.  

Other than that, you're looking at a database driven site.  



On 2011-06-22, at 11:42 PM, Robert Huttinger wrote:

>> I would very much appreciate any thoughts I could get from this bastion of 
>> experience on the best approach to designing a website which includes 
>> permitting selected users to update/modify content only.
>> 
>> I want a small handful of involved users to be able to update content only 
>> without disrupting site structure.

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

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: 


Re: Updating Website Content by Users - Slightly O.T

2011-06-22 Thread Robert Huttinger
Without going the full database route... Well there are many approaches.

Without a database I might have page sections loaded from XML or csv.
You can use php to read, parse, and rewite the file with an admin
section but then you run into security issues etc

It's a big open ended question that could take a long time to answer
and there is no assessment of you skills as a known variable.

Sent from my Unknown Thing Maker

On Jun 22, 2011, at 11:22 PM, Jack Stewart  wrote:

> I would very much appreciate any thoughts I could get from this bastion of 
> experience on the best approach to designing a website which includes 
> permitting selected users to update/modify content only.
>
> I want a small handful of involved users to be able to update content only 
> without disrupting site structure.
>
> Thank you very much -- Jack
>
> --
> 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
> 
> 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: 

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

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: 


Re: Updating Website Content by Users - Slightly O.T

2011-06-22 Thread Miraz Jordan
On Thu, Jun 23, 2011 at 15:22, Jack Stewart  wrote:
> I would very much appreciate any thoughts I could get from this bastion of
> experience on the best approach to designing a website which includes
> permitting selected users to update/modify content only.

It's off-topic for this list, but WordPress would meet your criteria nicely.

Cheers,

Miraz


-- 
MacTip: Restrict computer use with Parental Controls -
http://mactips.info/2011/06/restrict-computer-use-with-parental-controls

KnowIT: What's your digital legacy? -
http://knowit.co.nz/2011/06/whats-your-digital-legacy

Tech Universe at NZ Herald: http://bit.ly/bGX7UY

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

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: 


Updating Website Content by Users - Slightly O.T

2011-06-22 Thread Jack Stewart
I would very much appreciate any thoughts I could get from this 
bastion of experience on the best approach to designing a 
website which includes permitting selected users to 
update/modify content only.


I want a small handful of involved users to be able to update 
content only without disrupting site structure.


Thank you very much -- Jack

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

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: 


Re: AppleScript Open File in BBEdit 9.6

2011-06-22 Thread BeeRich
Sorry Patrick.  I got this to work.

How can I then launch a Text Factory on that file?  I can't seem to find 
anything in the dictionary.  



On 2011-06-22, at 5:30 PM, Patrick Woolsey wrote:

> set myF to alias "Hard Drive:Users:pwoolsey:Desktop:foo.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

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: 


Re: AppleScript Open File in BBEdit 9.6

2011-06-22 Thread BeeRich
Hi Chris.  Got it to work with colons and an alias in there.  

Cheers


On 2011-06-22, at 6:16 PM, Christopher Stone wrote:

> Hey Rich,
> 
> It's been mentioned that you're using the wrong syntax there to reference a 
> file 'as alias'.

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

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: 


Re: First Line of Selection?

2011-06-22 Thread Warren Michelsen
At 4:30 PM -0500 6/22/11, Christopher Stone sent 
email regarding Re: First Line of Selection?:

On Jun 22, 2011, at 10:52, Warren Michelsen wrote:
 Now then, I seem to be having a problem using 
AS to select the first line of a document's 
selection.  I've tried all kinds of things up 
to:


	set my_line to paragraph 1 of the selection 
of text document 1 of text window 1

__

Hey Warren,

It appears that you want to 'get' rather than 
'select' the first line of the selection.


Ummm..., once I've gotten it, where is it if I don't set something equal to it?



 How does one set a variable to the first line 
of the selected text of the front-most BBEdit 
document window?



It's easy once you figure out which object to 
reference which is not always straightforward in 
Applescript.  :)


 tell application "BBEdit"
   try
 tell text of front text window
   set my_line to line 1 of selection
 end tell


Seems strange telling something to the text. Very Object Oriented.



   on error errMsg number errNum
 set sep to "=="
 set e to sep & return & "Error: " & errMsg & return & sep & return ¬
   & "Error Number: " & errNum & return & sep
 beep
 display dialog e
   end try
 end tell

The new best practice with BBEdit is to 
reference the 'text of the front text window'.


Note that the code above will only provide a 
reference to the line object and not the 
contents thereof.


Noted.



 tell application "BBEdit"
   tell text of front text window
 set my_line to contents of line 1 of selection
   end tell
 end tell

Or as a one-liner:

 tell application "BBEdit" to set my_line to 
contents of line 1 of selection of text of front 
text window


That's what I changed to from:

tell application "BBEdit"
activate -- not taking any chances...
select text window 1
set the_text to the selection
set my_line to line 1 of the_text as text
end tell



HTH.


It does.



--
Best Regards,
Chris


Back atcha.

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

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: 


Re: Delete Table Column X

2011-06-22 Thread Warren Michelsen
At 6:03 PM -0400 6/22/11, Ronald J Kimball sent email regarding Re: 
Delete Table Column X:


By the way, you can use a character other than / as the delimiter, to avoid
escaping:

#!/usr/bin/perl -p
s{(^)(.*?)(.*?)(.*?)()}{$1$3$4};


Excellent. Using JD's nifty creation of a temporary filter file, I 
now use AS to get the selection, count the table columns, ask which 
one to delete then build the RegEx based on the column count and 
desired column to be deleted. This gets written to temp.pl in the 
Unix filters directory and called to effect the column deletion.


As always, it was an interesting learning experience. Thanks to those 
who helped out.


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

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: 


Re: Delete Table Column X

2011-06-22 Thread John Delacour

At 07:19 -0700 22/06/2011, Warren Michelsen wrote:

OK, I get it. It just changes the typed digit. Concocting the script 
to find/replace is for me to do!


RIght! Exactly as I said at the time.  And if you'd taken the trouble 
to see what it was doing, you would not have needed to post your next 
query either.  I'll send you a PayPal request before I answer your 
next question.


JD

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

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: 


Re: AppleScript Open File in BBEdit 9.6

2011-06-22 Thread Christopher Stone
On Jun 22, 2011, at 14:04, Rich F wrote:
> For the life of me I can't find a way of opening a file in a subdirectory in 
> my webserver directory...
> set myF to file "/Library/WebServer/Documents/alpha/bravo/items.lasso"
__

Hey Rich,

It's been mentioned that you're using the wrong syntax there to reference a 
file 'as alias'.

Note that BBEdit will deal with a posix path without conversion to a posix file 
or alias:

--
 set posixFileRef to "/Users/chris/test_directory/test.txt"
 
 tell application "BBEdit"
   open posixFileRef
 end tell
--

In the Finder I run this script with FastScripts using 'Control-P' to put 
alias-formatted references of the selected items on the clipboard:

--
#   Author: ccs
#  Created: 12-29-2010 : 18:48:00
# Modified: 01-05-2011 : 02:15:00
#  Application: Finder
#  Purpose: Copy Alias reference of selected items to the Clipboard.
# Dependencies: none
--
tell application "Finder"
  try
set sel to selection as alias list
if length of sel > 0 then
  set beginning of sel to ""
  set end of sel to ""
  set AppleScript's text item delimiters to {"\"" & return & "alias " & 
"\""}
  set sel to sel as string
  set sel to paragraphs 2 thru -2 of sel
  set AppleScript's text item delimiters to return
  set sel to sel as string
  set the clipboard to sel
end if
  on error errMsg number errNum
beep
display dialog "Error: " & errMsg & return & "Error Number: " & errNum
  end try
end tell
--

I find that automating this task leads to fewer mistakes and "Doh!' moments.  :)

Here's a similar script for Posix paths:

--
#   Author: ccs
#  Created: 2010-10-06 : 06:43
# Modified: 2011-06-22 : 17:00
#  Application: Finder
#  Purpose: Get posix path of selected items and copy to clipboard
# Dependencies: none
--
tell application "Finder"
  try
if (count of windows) > 0 then
  set sel to selection as alias list
  if length of sel > 0 then
repeat with ndx in sel
  set ndx's contents to "\"" & (POSIX path of ndx) & "\""
end repeat
set AppleScript's text item delimiters to linefeed
set sel to sel as string
set the clipboard to sel
  end if
end if
  on error errMsg number errNum
beep
display dialog "Error: " & errMsg & return & "Error Number: " & errNum
  end try
end tell
--

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

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: 


Re: Delete Table Column X

2011-06-22 Thread John Delacour

At 13:44 -0700 22/06/2011, Warren Michelsen wrote:



Why does this code as a Unix filter not delete table column 1?

#!/usr/bin/perl
s/(^)(.*?<\/td>)(.*?<\/td>)(.*?<\/td>)(<\/tr>)/\1\3\4<\/tr>/;
print;

Instead, all selected text is replaced with nothing. What about this 
script is malformed?


It has nothing to print, so it prints nothing.


#!/usr/bin/perl
while(<>){
  s/(^)(.*?<\/td>)(.*?<\/td>)(.*?<\/td>)(<\/tr>)/\1\3\4<\/tr>/;
  print;
}

JD

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

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: 


Re: Delete Table Column X

2011-06-22 Thread Ronald J Kimball
On Wed, Jun 22, 2011 at 01:44:10PM -0700, Warren Michelsen wrote:
> Why does this code as a Unix filter not delete table column 1?
> 
> #!/usr/bin/perl
> s/(^)(.*?<\/td>)(.*?<\/td>)(.*?<\/td>)(<\/tr>)/\1\3\4<\/tr>/;
> print;
> 
> Instead, all selected text is replaced with nothing. What about this 
> script is malformed?

Your script doesn't read any input.  :)

#!/usr/bin/perl -p
s/(^)(.*?<\/td>)(.*?<\/td>)(.*?<\/td>)(<\/tr>)/$1$3$4<\/tr>/;


Or, if you want to be more verbose:

#!/usr/bin/perl
while (<>) {
  s/(^)(.*?<\/td>)(.*?<\/td>)(.*?<\/td>)(<\/tr>)/$1$3$4<\/tr>/;
  print;
}


Note that in Perl you should use $1 rather than \1 in the replacement part
of a substitution.


By the way, you can use a character other than / as the delimiter, to avoid
escaping:

#!/usr/bin/perl -p
s{(^)(.*?)(.*?)(.*?)()}{$1$3$4};


Ronald

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

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: 


Re: AppleScript Open File in BBEdit 9.6

2011-06-22 Thread Patrick Woolsey
BeeRich  sez:

>That resulted in a "doesn't understand the open message".

Should work; what was the exact text of your script? (and, did you replace
my example path with a valid path? :)


>If I want to avoid the POSIX syntax, do I use colons?

Yes; in that case you should write the path in traditional AppleScript
fashion and use 'alias', like this:

===
set myF to alias "Hard Drive:Users:pwoolsey:Desktop:foo.txt"
...
===


Regards,

 Patrick Woolsey
==
Bare Bones Software, Inc.  
P.O. Box 1048, Bedford, MA 01730-1048

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

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: 


Re: First Line of Selection?

2011-06-22 Thread Christopher Stone
On Jun 22, 2011, at 10:52, Warren Michelsen wrote:
> Now then, I seem to be having a problem using AS to select the first line of 
> a document's selection.  I've tried all kinds of things up to:
> 
>   set my_line to paragraph 1 of the selection of text document 1 of text 
> window 1
__

Hey Warren,

It appears that you want to 'get' rather than 'select' the first line of the 
selection.

> How does one set a variable to the first line of the selected text of the 
> front-most BBEdit document window?


It's easy once you figure out which object to reference which is not always 
straightforward in Applescript.  :)

 tell application "BBEdit"
   try
 tell text of front text window
   set my_line to line 1 of selection
 end tell
 
   on error errMsg number errNum
 set sep to "=="
 set e to sep & return & "Error: " & errMsg & return & sep & return ¬
   & "Error Number: " & errNum & return & sep
 beep
 display dialog e
   end try
 end tell

The new best practice with BBEdit is to reference the 'text of the front text 
window'.

Note that the code above will only provide a reference to the line object and 
not the contents thereof.

 tell application "BBEdit"
   tell text of front text window
 set my_line to contents of line 1 of selection
   end tell
 end tell

Or as a one-liner:

 tell application "BBEdit" to set my_line to contents of line 1 of selection of 
text of front text window

Scope out:

 tell application "BBEdit"
   tell text of front text window
 properties of selection
   end tell
 end tell

If you *had* wanted to *select* the line:

 tell application "BBEdit"
   tell text of front text window
 select first line of selection
   end tell
 end tell

HTH.

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

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: 


Re: Delete Table Column X

2011-06-22 Thread Warren Michelsen

Why does this code as a Unix filter not delete table column 1?

#!/usr/bin/perl
s/(^)(.*?<\/td>)(.*?<\/td>)(.*?<\/td>)(<\/tr>)/\1\3\4<\/tr>/;
print;

Instead, all selected text is replaced with nothing. What about this 
script is malformed?




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

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: 


Re: AppleScript Open File in BBEdit 9.6

2011-06-22 Thread BeeRich
Hey no apologies required.  That's a great tool.  I should use that in the 
future.


On 2011-06-22, at 4:23 PM, Robert Huttinger wrote:

> Sorry, yes I know :) I was trying to give you a local option of
> viewing the exact syntax you were looking for but my way is
> confusing...

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

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: 


Re: AppleScript Open File in BBEdit 9.6

2011-06-22 Thread Robert Huttinger
Sorry, yes I know :) I was trying to give you a local option of
viewing the exact syntax you were looking for but my way is
confusing...

Sent from my iPhone

On Jun 22, 2011, at 4:21 PM, BeeRich  wrote:

> Yes.  I didn't know you were using Automator.  I was trying to record in the 
> AE window.
>
>
>
> On 2011-06-22, at 4:04 PM, Robert Huttinger wrote:
>
>> this is like asking peter to punch paul for you but, if you open automator 
>> and your start a 'watch me do' session and select a folder, then stop. when 
>> finished you will have a list of items in the watch me do section. drag the 
>> 'select folder' (or similar) below the watch me do action and it will create 
>> a new action with the actual applescript in it!
>>
>> did that make any sense?
>>
>
> --
> 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
> 
> 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: 

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

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: 


Re: AppleScript Open File in BBEdit 9.6

2011-06-22 Thread BeeRich
Actually, while we are on topic, how do I select a text factory for the open 
file?  

As an option, I'm trying to use AppleScript syntax for a single replace and 
save.  This is what I have for the replace, and she's not compiling:

replace "\x0B" using "\r" searching in selection of text window 1 options 
{search mode:literal, starting at top:true, wrap around:false, backwards:false, 
case sensitive:false, match words:false, extend selection:false}

Any ideas?  That is a gremlin inserted by our lovely FileMaker.  

Cheers




On 2011-06-22, at 4:04 PM, Robert Huttinger wrote:

> this is like asking peter to punch paul for you but, if you open automator 
> and your start a 'watch me do' session and select a folder, then stop. when 
> finished you will have a list of items in the watch me do section. drag the 
> 'select folder' (or similar) below the watch me do action and it will create 
> a new action with the actual applescript in it!

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

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: 


Re: AppleScript Open File in BBEdit 9.6

2011-06-22 Thread BeeRich
Yes.  I didn't know you were using Automator.  I was trying to record in the AE 
window.



On 2011-06-22, at 4:04 PM, Robert Huttinger wrote:

> this is like asking peter to punch paul for you but, if you open automator 
> and your start a 'watch me do' session and select a folder, then stop. when 
> finished you will have a list of items in the watch me do section. drag the 
> 'select folder' (or similar) below the watch me do action and it will create 
> a new action with the actual applescript in it!
> 
> did that make any sense?
> 

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

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: 


Re: AppleScript Open File in BBEdit 9.6

2011-06-22 Thread Robert Huttinger
this is like asking peter to punch paul for you but, if you open automator
and your start a 'watch me do' session and select a folder, then stop. when
finished you will have a list of items in the watch me do section. drag the
'select folder' (or similar) below the watch me do action and it will create
a new action with the actual applescript in it!

did that make any sense?

bo


On Wed, Jun 22, 2011 at 4:01 PM, BeeRich  wrote:

> But then I can't initiate it from FileMaker.  That's the whole point of
> this.  If I was in BBEdit originally then I could just click on a Text
> Factory.  I need FMP to launch that TF, but only after the file has been
> opened.
>
>
> On 2011-06-22, at 3:58 PM, Doug McNutt wrote:
>
> > I'm biased but the sooner one gets out of Applescript the better UNIX
> works.
> >
> > Install the bbedit tool from Bare bones
> >
> > do shell script  "bbedit " &  quoted form of
>  "/Library/WebServer/Documents/alpha/bravo/items.lasso"
>
> --
> 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
> 
> 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: 
>

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

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: 


Re: AppleScript Open File in BBEdit 9.6

2011-06-22 Thread BeeRich
But then I can't initiate it from FileMaker.  That's the whole point of this.  
If I was in BBEdit originally then I could just click on a Text Factory.  I 
need FMP to launch that TF, but only after the file has been opened.  


On 2011-06-22, at 3:58 PM, Doug McNutt wrote:

> I'm biased but the sooner one gets out of Applescript the better UNIX works.
> 
> Install the bbedit tool from Bare bones
> 
> do shell script  "bbedit " &  quoted form of  
> "/Library/WebServer/Documents/alpha/bravo/items.lasso"

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

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: 


Re: AppleScript Open File in BBEdit 9.6

2011-06-22 Thread Doug McNutt
At 12:04 -0700 6/22/11, Rich F wrote:
>For the life of me I can't find a way of opening a file in a
>subdirectory in my webserver directory.
>
>
>set myF to file "/Library/WebServer/Documents/alpha/bravo/items.lasso"
>
>tell application "BBEdit 9.6"
>   open myF as alias
>end tell
>

I'm biased but the sooner one gets out of Applescript the better UNIX works.

Install the bbedit tool from Bare bones

do shell script  "bbedit " &  quoted form of  
"/Library/WebServer/Documents/alpha/bravo/items.lasso"

-- 

--> A fair tax is one that you pay but I don't <--

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

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: 


Re: AppleScript Open File in BBEdit 9.6

2011-06-22 Thread BeeRich
I tried recording it, but she wouldn't give me any syntax.  

Tried colons, didn't work.  

Cheers


On 2011-06-22, at 3:12 PM, Lorin Rivers wrote:

> Glen,
> 
> In all my scripts that open files, I use this structure instead:
>   open {file "infernal:private:etc:apache2:httpd.conf"}
> 
> Which is what AppleScript emits if you record BBEdit opening a file.
> 
> HTH!

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

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: 


Re: AppleScript Open File in BBEdit 9.6

2011-06-22 Thread BeeRich
(not sure if this went through)

OK, got it to work:

open myF as alias

Any clarification on the POSIX notation?

Thanks Patrick!  


On 2011-06-22, at 3:25 PM, Patrick Woolsey wrote:

> set myF to POSIX file "/Users/pwoolsey/Desktop/foo.txt"
> 
> tell application "BBEdit"
>   open myF
> end tell

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

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: 


Re: AppleScript Open File in BBEdit 9.6

2011-06-22 Thread Lorin Rivers

On Jun 22, 2011, at 14:04 , Rich F wrote:

> Hi folks.
> 
> For the life of me I can't find a way of opening a file in a
> subdirectory in my webserver directory.
> 
> 
> set myF to file "/Library/WebServer/Documents/alpha/bravo/items.lasso"
> 
> tell application "BBEdit 9.6"
>   open myF as alias
> end tell
> 
> It says can't get the file.  I know it's there.  I've tried how to
> change the syntax on the open and I just can't get it.  Any ideas?
> 
> Cheers


Glen,

In all my scripts that open files, I use this structure instead:
open {file "infernal:private:etc:apache2:httpd.conf"}

Which is what AppleScript emits if you record BBEdit opening a file.

HTH!

-- 
Lorin Rivers
Mosasaur: Killer Technical Marketing 

512/203.3198 (m)


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

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: 


Re: php syntax coloring inside of html tag

2011-06-22 Thread Lorin Rivers
Rick, actually, I think BBEdit is doing it right in this case, it looks like 
your syntax is in error.

Try this:


Pastebin also has trouble with the syntax as presented: 


Cheers!

Also, Steve, thanks for AppleScripts.

On Jun 22, 2011, at 7:56 , ryentzer wrote:

> My apologies Steve, it does indeed work correctly. My syntax coloring was 
> throwing me off a bit.
> As an aside, I tried this same situation in several other editors and many 
> of them incorrectly colored the code as well. Only two of the ones I tried 
> got it correct. But BBEdit gets so many other things right. 
> 
> Thanks, Rick
> 
> -- 
> 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
> 
> 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: 

-- 
Lorin Rivers
Mosasaur: Killer Technical Marketing 

512/203.3198 (m)


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

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: 


Re: AppleScript Open File in BBEdit 9.6

2011-06-22 Thread BeeRich
OK, got it to work:

open myF as alias

Any clarification on the POSIX notation?

Thanks Patrick!  


On 2011-06-22, at 3:25 PM, Patrick Woolsey wrote:

> set myF to POSIX file "/Users/pwoolsey/Desktop/foo.txt"
> 
> tell application "BBEdit"
>open myF
> end tell

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

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: 


Re: AppleScript Open File in BBEdit 9.6

2011-06-22 Thread Robert Huttinger
there are 2 kinds of paths you can use you may want to do a search and get
the syntax right. this is a little tricky on its face...

bo huttinger

On Wed, Jun 22, 2011 at 3:30 PM, BeeRich  wrote:

> Hi Patrick.
>
> That resulted in a "doesn't understand the open message".  If I want to
> avoid the POSIX syntax, do I use colons?  Still didn't work.
>
>
> On 2011-06-22, at 3:25 PM, Patrick Woolsey wrote:
>
> > The path format doesn't match; assuming you want to use Unix paths:
> >
> > 
> > set myF to POSIX file "/Users/pwoolsey/Desktop/foo.txt"
> >
> > tell application "BBEdit"
> >open myF
> > end tell
> > 
>
> --
> 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
> 
> 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: 
>

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

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: 


Re: AppleScript Open File in BBEdit 9.6

2011-06-22 Thread BeeRich
Hi Patrick.

That resulted in a "doesn't understand the open message".  If I want to avoid 
the POSIX syntax, do I use colons?  Still didn't work. 


On 2011-06-22, at 3:25 PM, Patrick Woolsey wrote:

> The path format doesn't match; assuming you want to use Unix paths:
> 
> 
> set myF to POSIX file "/Users/pwoolsey/Desktop/foo.txt"
> 
> tell application "BBEdit"
>open myF
> end tell
> 

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

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: 


Re: AppleScript Open File in BBEdit 9.6

2011-06-22 Thread BeeRich
Hi Bo.  Thanks for the reply.

Unfortunately that didn't work either on 777.  


On 2011-06-22, at 3:15 PM, Robert Huttinger wrote:

> it may be a permissions issue, try setting permission to 755 or 777 and try 
> again

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

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: 


Re: AppleScript Open File in BBEdit 9.6

2011-06-22 Thread Patrick Woolsey
Rich F  sez:

>For the life of me I can't find a way of opening a file in a
>subdirectory in my webserver directory.
>
>set myF to file "/Library/WebServer/Documents/alpha/bravo/items.lasso"
>
>tell application "BBEdit 9.6"
>   open myF as alias
>end tell
>
>It says can't get the file.  I know it's there.  I've tried how to
>change the syntax on the open and I just can't get it.  Any ideas?


The path format doesn't match; assuming you want to use Unix paths:


set myF to POSIX file "/Users/pwoolsey/Desktop/foo.txt"

tell application "BBEdit"
open myF
end tell



Regards,

 Patrick Woolsey
==
Bare Bones Software, Inc.  
P.O. Box 1048, Bedford, MA 01730-1048

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

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: 


Re: AppleScript Open File in BBEdit 9.6

2011-06-22 Thread Robert Huttinger
it may be a permissions issue, try setting permission to 755 or 777 and try
again


bo huttinger


On Wed, Jun 22, 2011 at 3:04 PM, Rich F  wrote:

> Hi folks.
>
> For the life of me I can't find a way of opening a file in a
> subdirectory in my webserver directory.
>
>
> set myF to file "/Library/WebServer/Documents/alpha/bravo/items.lasso"
>
> tell application "BBEdit 9.6"
>open myF as alias
> end tell
>
> It says can't get the file.  I know it's there.  I've tried how to
> change the syntax on the open and I just can't get it.  Any ideas?
>
> Cheers
>
> --
> 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
> 
> 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: 
>

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

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: 


AppleScript Open File in BBEdit 9.6

2011-06-22 Thread Rich F
Hi folks.

For the life of me I can't find a way of opening a file in a
subdirectory in my webserver directory.


set myF to file "/Library/WebServer/Documents/alpha/bravo/items.lasso"

tell application "BBEdit 9.6"
open myF as alias
end tell

It says can't get the file.  I know it's there.  I've tried how to
change the syntax on the open and I just can't get it.  Any ideas?

Cheers

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

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: 


Re: php syntax coloring inside of html tag

2011-06-22 Thread Steve Piercy
On Jun 22, 5:56 am, ryentzer  wrote:
> My apologies Steve, it does indeed work correctly. My syntax coloring was
> throwing me off a bit.

Glad to hear it!

I use this to switch syntax coloring between my programming language,
HTML and javascript, all with a keyboard shortcut in BBEdit to fire
off the AppleScript.

--steve

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

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: 


Re: First Line of Selection?

2011-06-22 Thread Christian Boyce
I think it is going to be easy.

tell application "BBEdit"
set the_text to the selection
set my_line to line 1 of the_text
end tell

Not "paragraph 1." Line 1. Took a long time to trial-and-error that over here.

c
On Jun 22, 2011, at 8:52 AM, Warren Michelsen wrote:

> This ought to be very easy. I have html documents containing tables. No 
> colspan or rowspan properties are used so each table row has the same number 
> of columns.
> 
> The documents are formatted such that each table row is one line in the 
> document; the line starts with " and ends with " so that a complete 
> row can be selected by selecting a complete line.
> 
> Now then, I seem to be having a problem using AS to select the first line of 
> a document's selection.  I've tried all kinds of things up to:
> 
>   set my_line to paragraph 1 of the selection of text document 1 of text 
> window 1
> 
> I keep getting the error: "An attempt was made to resolve an Apple Event 
> reference to a non-existent object."
> 
> How does one set a variable to the first line of the selected text of the 
> front-most BBEdit document window?
> 
> All I want to do is get the characters of that first line and count the 
> instances of " 
> I thought this was going to be easy... 
> 
> -- 
> 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
> 
> 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: 


--
Christian Boyce
Christian Boyce and Associates
Mac, iPhone, and iPad Consultants
310-452-3720

Read the Boyce Blog: http://christianboyce.blogspot.com
Follow us on Twitter! http://twitter.com/christianboyce
Be a fan on Facebook! http://tinyurl.com/cboyce-and-associates-facebook

Now Playing on The Boyce Blog: Search Google Images by COLOR

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

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: 


First Line of Selection?

2011-06-22 Thread Warren Michelsen
This ought to be very easy. I have html documents containing tables. No colspan 
or rowspan properties are used so each table row has the same number of columns.

The documents are formatted such that each table row is one line in the 
document; the line starts with " and ends with " so that a complete 
row can be selected by selecting a complete line.

Now then, I seem to be having a problem using AS to select the first line of a 
document's selection.  I've tried all kinds of things up to:

set my_line to paragraph 1 of the selection of text document 1 of text 
window 1

I keep getting the error: "An attempt was made to resolve an Apple Event 
reference to a non-existent object."

How does one set a variable to the first line of the selected text of the 
front-most BBEdit document window?

All I want to do is get the characters of that first line and count the 
instances of "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: 


Re: Delete Table Column X

2011-06-22 Thread Warren Michelsen
At 7:15 AM -0700 6/22/11, Warren Michelsen sent email regarding Re: 
Delete Table Column X:
At 10:02 AM +0100 6/22/11, John Delacour sent email regarding Re: 
Delete Table Column X:

At 22:50 -0700 21/06/2011, Warren Michelsen wrote:

When run, this warns me that Unix filters require Unix line 
endings and that temp.pl does not have them.


That's odd.  What programme did you use to create the script?


Script Editor Version 2.2.1 (100.1) AppleScript 2.0.1 under OS X 10.5.8.

I didn't have this problem with AppleScript Editor but I can 
imagine Smile or Script Debugger might do this.  In that case you 
need to force Unix line endings, like this:


The Good News is that the script (apparently) had Unix line endings, 
as it ran.


OK, I get it. It just changes the typed digit. Concocting the script 
to find/replace is for me to do!


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

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: 


Re: Delete Table Column X

2011-06-22 Thread Warren Michelsen
At 10:02 AM +0100 6/22/11, John Delacour sent email regarding Re: 
Delete Table Column X:

At 22:50 -0700 21/06/2011, Warren Michelsen wrote:

When run, this warns me that Unix filters require Unix line endings 
and that temp.pl does not have them.


That's odd.  What programme did you use to create the script?


Script Editor Version 2.2.1 (100.1) AppleScript 2.0.1 under OS X 10.5.8.

I didn't have this problem with AppleScript Editor but I can imagine 
Smile or Script Debugger might do this.  In that case you need to 
force Unix line endings, like this:


The Good News is that the script (apparently) had Unix line endings, as it ran.

The Bad News is that it replaced every "1" digit within the selected 
table data with "<1>" rather than deleted a table column.


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

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: 


Re: php syntax coloring inside of html tag

2011-06-22 Thread ryentzer
My apologies Steve, it does indeed work correctly. My syntax coloring was 
throwing me off a bit.
As an aside, I tried this same situation in several other editors and many 
of them incorrectly colored the code as well. Only two of the ones I tried 
got it correct. But BBEdit gets so many other things right. 

Thanks, Rick

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

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: 


Re: Delete Table Column X

2011-06-22 Thread John Delacour

At 22:50 -0700 21/06/2011, Warren Michelsen wrote:

When run, this warns me that Unix filters require Unix line endings 
and that temp.pl does not have them.


That's odd.  What programme did you use to create the script?  I 
didn't have this problem with AppleScript Editor but I can imagine 
Smile or Script Debugger might do this.  In that case you need to 
force Unix line endings, like this:


--_
tell application "BBEdit"
  activate
  set _dd to display dialog "Type a digit?" default answer ""
  set _number to text returned of _dd
  set _appsup to "" & (path to application support from user domain)
  set _unixfilters to _appsup & "BBEdit:Unix Support:Unix Filters:"
  set _perlscript to _unixfilters & "temp.pl"
  try
close access file _perlscript
  end try
  set _fh to open for access file _perlscript with write permission
  set eof _fh to 0
  write my SCRIPT_TEXT(_number) to _fh
  close access _fh
  run unix filter alias _perlscript
end tell
on SCRIPT_TEXT(_n)
  set _lf to ASCII character 10
  set _s to "#!/usr/bin/perl
my $n = qq~" & _n & "~;" & "
while (<>){
  s/$n/<$n>/g;
  print;
}"
  set _paras to paragraphs of _s
  set AppleScript's text item delimiters to _lf
  set _s to _paras as string
  set AppleScript's text item delimiters to {""}
  return _s
end SCRIPT_TEXT
--_


--JD

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

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: