Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Applescript > Re: Applescript...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 10 of 16 Topic 1609 of 1647
Post > Topic >>

Re: Applescript to work with text. I'm stuck.

by Jolly Roger <jollyroger@[EMAIL PROTECTED] > May 4, 2008 at 10:13 PM

In article <050520081244174441%fuddled@[EMAIL PROTECTED]
>,
 Fuddled <fuddled@[EMAIL PROTECTED]
> wrote:

> In article <jollyroger-8D2DB7.14081804052008@[EMAIL PROTECTED]
>, Jolly
> Roger <jollyroger@[EMAIL PROTECTED]
> wrote:
> 
> > In article <040520081941423776%fuddled@[EMAIL PROTECTED]
>,
> >  Fuddled <fuddled@[EMAIL PROTECTED]
> wrote:
> > 
> > > I'm working in BBEdit, preparing academic do***ents to be
browser-read,
> > > and I'd like to reproduce a script I have written for FileMaker Pro,
> > > which places tags round either side of a selection.
> > > 
> > > e.g. if I want to markup a word/phrase for italics, in FileMaker I
can
> > > easily write a script that copies
> > > 
> > > selection
> > > 
> > > and replaces it with
> > > 
> > > <i>selection</i>
> > 
> > Why use BBEdit at all?  AppleScript can read text files and write text

> > files. And AppleScript can replace text in strings. So you don't even 
> > need to involve BBEdit.
> 
> As I'm building HTML pages, I can't think of anything more friendly.
> All those pretty colours are just the thing for an Arts faculty.
> 
> I'm working on a whole collection of do***ents to present via browser,
> consistently displayed, clean-and-simple, CSS etc., hence BBE.

That may be, but in actuality, you are automating a search and replace 
operation that has nothing at all to do with BBEdit. Sending commands to 
BBEdit will only slow things down, because BBEdit will have to draw each 
change in selection and so on to the screen. The job you are actually 
doing has little to do with BBEdit - so why complicate things?

> > Try this script on for size:
> > 
> > <http://jollyroger.kicks-ass.org/convert/Convert.applescript>
> > 
> > I packed it up in a ZIP archive if you'd like to download the script
and 
> > run it:
> > 
> > <http://jollyroger.kicks-ass.org/convert/Convert.zip>
> > 
> > Enjoy!
> 
> Many thanks, Mr Roger, I'll try this.

You're welcome.

-- 
Please send all responses to the relevant news group. E-mail sent to
this address may be devoured by my very hungry SPAM filter. I do not
read posts from Google Groups. Use a real news reader if you want me to
see your posts.

JR
 




 16 Posts in Topic:
Applescript to work with text. I'm stuck.
Fuddled <fuddled@[EMAI  2008-05-04 09:41:44 
Re: Applescript to work with text. I'm stuck.
J. Stewart <cfnzrpu@[E  2008-05-04 06:50:50 
Re: Applescript to work with text. I'm stuck.
Fuddled <fuddled@[EMAI  2008-05-05 02:28:24 
Private Message
   2008-05-04 20:23:37 
Re: Applescript to work with text. I'm stuck.
J. Stewart <cfnzrpu@[E  2008-05-04 07:22:58 
Private Message
   2008-05-04 07:52:28 
Re: Applescript to work with text. I'm stuck.
Fuddled <fuddled@[EMAI  2008-05-05 02:38:32 
Re: Applescript to work with text. I'm stuck.
Jolly Roger <jollyroge  2008-05-04 14:08:18 
Re: Applescript to work with text. I'm stuck.
Fuddled <fuddled@[EMAI  2008-05-05 02:44:26 
Re: Applescript to work with text. I'm stuck.
Jolly Roger <jollyroge  2008-05-04 22:13:39 
Re: Applescript to work with text. I'm stuck.
Fuddled <fuddled@[EMAI  2008-05-05 12:09:26 
Private Message
   2008-05-05 08:17:42 
Re: Applescript to work with text. I'm stuck.
Jolly Roger <jollyroge  2008-05-05 20:56:59 
Re: Applescript to work with text. I'm stuck.
Jerry Kindall <jerryki  2008-05-05 19:54:21 
Re: Applescript to work with text. I'm stuck.
Jolly Roger <jollyroge  2008-05-05 22:41:58 
Re: Applescript to work with text. I'm stuck.
Fuddled <fuddled@[EMAI  2008-05-07 06:45:58 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 19:30:21 CDT 2008.