|
Next: How do you make iTunes 7 stop introducing songs?
|
| Author |
Message |
External

Since: Nov 14, 2006 Posts: 2
|
(Msg. 1) Posted: Mon Nov 13, 2006 10:53 am
Post subject: Could someone help with an AppleScript in BBEdit? Archived from groups: comp>sys>mac>apps (more info?)
|
|
|
I need to insert Quark tags into a text file that is exported from a
classified ads application. I just can't seem to get the syntax right to
have a font tag <f"LegalNews-Bold> inserted at the beginning of the line
before the date tag. For example, here is what is in the export file:
@adinfo:<*C>Legal Notice
<*J>2006 ADV 0117780‹James E. Spitz, Administrator vs. Unknown
heirs-at-law, etc., et al.
Unknown heirs-at-law and next of kin of Charles J. Chatinski, the place
of residence of each being unknown, will take notice that on September
11, 2006, the undersigned, James E. Spitz, Administrator of the Estate
of Charles J. Chatinski, deceased, filed his complaint in the Probate
Court 1 Lakeside Avenue, Cleveland, Ohio 44113, of Cuyahoga County,
Ohio, alleging that said decedent died seized in fee simple of the
following described real estate, to-wit:
Situated in the City of Cleveland, County of Cuyahoga and State of Ohio
and known as being Sub Lot 102, in the Selker-Himmel Inc. Riverview
Subdivision No. 3, as shown by the recorded plat in Volume 99 of Maps,
Page 20 of Cuyahoga County Records, and being 40 feet front on the
Northerly side of Flamingo Avenue, S.W., and extending back of equal
width 114.50 feet, as appears by said plat, be the same more or less,
but subject to all legal highways.
Plaintiff alleges that it is for the best interest of the decedent's
estate to sell the entire interest in the property described.
Plaintiff demands and request that the entire interest in the real
estate be sold; that the rights and interests of the Defendant be
protected, and that Plaintiff be authorized to sell the described real
estate in accordance with the statutes, and for such other relief for
which he may be entitled.
The defendants named above are required to answer on or before the 5th
day of December, 2006.
JAMES E. SPITZ, ADMINISTRATOR OF THE ESTATE OF CHARLES J. CHATINSKI,
DECEASED.
By James E. Spitz, Attorney for Plaintiff.
Oct3-10-17-24-31Nov7, 2006<\b>
At the top, from "Legal Notice" through "et al." needs to be in a
different font. Not a problem to place the tag after every instance of
"@adinfo:". The problem is putting the tag to go back to the light font
at the end of the line. The attorney line near the end also needs to be
in the bold font. No problem, again, putting the tag before the date.
But placing a font tag on the previous line is the problem. Do I use an
insertion point command? What I have is:
tell application (path to frontmost application as string)
repeat
display dialog "Enter the newspaper date as it appears on the date
line of the newspaper (e.g., Oct11)" default answer "Date unknown"
set this_date to "
" & the text returned of the result
if this_date is not "" then exit repeat
end repeat
end tell
tell application "BBEdit"
activate
replace "@adinfo:" using "@adinfo:<f\"LegalNews-Bold\">" searching in
text 1 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}
replace this_date using "<f\"LegalNews-Light\">" & this_date
searching in text 1 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}
end tell
Help, please!
--Lisa |
|
| Back to top |
|
 |  |
External

Since: Oct 05, 2006 Posts: 19
|
(Msg. 2) Posted: Tue Nov 14, 2006 7:22 am
Post subject: Re: Could someone help with an AppleScript in BBEdit? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On 2006-11-13 10:53:08 -0500, Lisa Cech <lisacech.RemoveThis@dln.com> said:
> I need to insert Quark tags into a text file that is exported from a
> classified ads application. I just can't seem to get the syntax right
> to have a font tag <f"LegalNews-Bold> inserted at the beginning of the
> line before the date tag. For example, here is what is in the export
> file:
You will have more sucess if you put this on the newsgroup for Applescript.
alt.comp.lang.applescript
J
--
Use ROT-13 for email address |
|
| Back to top |
|
 |  |
External

Since: May 31, 2006 Posts: 850
|
(Msg. 3) Posted: Tue Nov 14, 2006 6:05 pm
Post subject: Re: Could someone help with an AppleScript in BBEdit? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
In article <lisacech-B35F1D.10530813112006.TakeThisOut@individual.net>, Lisa Cech
<lisacech.TakeThisOut@dln.com> wrote:
> I need to insert Quark tags into a text file that is exported from a
> classified ads application. I just can't seem to get the syntax right to
> have a font tag <f"LegalNews-Bold> inserted at the beginning of the line
> before the date tag.
Don't use BBEdit. Download the Satimage scripting addition
<http://www.satimage.fr/software/en/downloads_osaxen_pop.html>, check
its documentation and then this:
replace "@adinfo:" using "@adinfo:<f\"LegalNews-Bold\">" searching in
text 1 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}
could become something like:
set TheAd to read file "path:to:file"
set theSearch to "@adinfo:"
set theReplace to "@adinfo:<f\"LegalNews-Bold\">"
set theAd to change theSearch into theReplace in theAd |
|
| Back to top |
|
 |  |
External

Since: Dec 29, 2006 Posts: 61
|
(Msg. 4) Posted: Tue Nov 14, 2006 6:39 pm
Post subject: Re: Could someone help with an AppleScript in BBEdit? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Tue, 14 Nov 2006 12:22:29 +0000, J. Stewart wrote
(in article <200611140722295937-cfnzrpu@crevtrrarg>):
> You will have more sucess if you put this on the newsgroup for Applescript.
>
> alt.comp.lang.applescript
The OP might find some useful help at the BBEdit scripting email list
which can be found amongst other BBEdit email lists here:
<http://www.barebones.com/support/lists/index.shtml>
I did think about it for a while but then my brain cell started to tire
so I gave up
--
Patrick
Brighton, UK
<http://www.patrickjames.me.uk> |
|
| Back to top |
|
 |  |
External

Since: Oct 05, 2006 Posts: 19
|
(Msg. 5) Posted: Tue Nov 14, 2006 6:39 pm
Post subject: Re: Could someone help with an AppleScript in BBEdit? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On 2006-11-14 13:39:00 -0500, patrick j
<patrick.RemoveThis@jamesnews.orangehome.co.uk> said:
>> You will have more sucess if you put this on the newsgroup for Applescript.
>>
>> alt.comp.lang.applescript
>
> The OP might find some useful help at the BBEdit scripting email list
> which can be found amongst other BBEdit email lists here:
>
> <http://www.barebones.com/support/lists/index.shtml>
>
> I did think about it for a while but then my brain cell started to tire
> so I gave up
But IIRC the OP is looking for help with Quark not BBEdit. Quark isn't
a BareBones app ergo a BareBones list is the wrong place to send them.
<http://lists.apple.com/mailman/listinfo/applescript-users>
is a viable alternative.
J
--
Use ROT-13 for email address |
|
| Back to top |
|
 |  |
External

Since: Dec 29, 2006 Posts: 61
|
(Msg. 6) Posted: Fri Nov 17, 2006 4:11 pm
Post subject: Re: Could someone help with an AppleScript in BBEdit? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Tue, 14 Nov 2006 22:07:43 +0000, J. Stewart wrote
(in article <2006111417074357445-cfnzrpu@crevtrrarg>):
> On 2006-11-14 13:39:00 -0500, patrick j
> <patrick RemoveThis @jamesnews.orangehome.co.uk> said:
>
>>> You will have more sucess if you put this on the newsgroup for Applescript.
>>>
>>> alt.comp.lang.applescript
>>
>> The OP might find some useful help at the BBEdit scripting email list
>> which can be found amongst other BBEdit email lists here:
>>
>> <http://www.barebones.com/support/lists/index.shtml>
>>
>> I did think about it for a while but then my brain cell started to tire
>> so I gave up
>
> But IIRC the OP is looking for help with Quark not BBEdit. Quark isn't
> a BareBones app ergo a BareBones list is the wrong place to send them.
>
> <http://lists.apple.com/mailman/listinfo/applescript-users>
>
> is a viable alternative.
>
> J
>
Well my reading of it is that they are looking for help with BBEdit.
--
Patrick
Brighton, UK
<http://www.patrickjames.me.uk> |
|
| Back to top |
|
 |  |
External

Since: May 31, 2006 Posts: 850
|
(Msg. 7) Posted: Fri Nov 17, 2006 4:11 pm
Post subject: Re: Could someone help with an AppleScript in BBEdit? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
In article <0001HW.C1838F9A027CA5A0B042494F DeleteThis @News.Individual.Net>,
patrick j <patrick DeleteThis @jamesnews.orangehome.co.uk> wrote:
> On Tue, 14 Nov 2006 22:07:43 +0000, J. Stewart wrote
> (in article <2006111417074357445-cfnzrpu@crevtrrarg>):
>
> > On 2006-11-14 13:39:00 -0500, patrick j
> > <patrick DeleteThis @jamesnews.orangehome.co.uk> said:
> >
> >>> You will have more sucess if you put this on the newsgroup for
> >>> Applescript.
> >>>
> >>> alt.comp.lang.applescript
> >>
> >> The OP might find some useful help at the BBEdit scripting email list
> >> which can be found amongst other BBEdit email lists here:
> >>
> >> <http://www.barebones.com/support/lists/index.shtml>
> >>
> >> I did think about it for a while but then my brain cell started to tire
> >> so I gave up
> >
> > But IIRC the OP is looking for help with Quark not BBEdit. Quark isn't
> > a BareBones app ergo a BareBones list is the wrong place to send them.
> >
> > <http://lists.apple.com/mailman/listinfo/applescript-users>
> >
> > is a viable alternative.
> >
> > J
> >
>
> Well my reading of it is that they are looking for help with BBEdit.
My reading is that they need to do a S&R on a text file and recorded a
BBEdit script because they didn't know how else to approach the
problem.
As I've already posted, BEdit isn't necessary for the S&R. |
|
| Back to top |
|
 |  |
| Related Topics: | Is Applescript appropriate for this iPhoto problem? - iPhoto 5 stores all or most jpg exif information in one Library.iPhoto file, whereas iPhoto 4 stored this in .attr files, one per photo (in a Data directory for each day of photos). Unfortunately, some digital cameras (Pentax Optio, Casio, some..
AppleScript to add iTunes sample track - When viewing the iTunes store, it is possible to drag a track to a playlist. If you then view the playlist, you can double-click on the track to play the 30-second sample, press the Buy Track button to buy the track, or click on the arrow icon to view...
FARRAH FAWCETT-EXTREMITIES-mint Beta video movie tape - http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=6404378071&rd=1&sspagename=STRK%3AMESE%3AIT&rd=1
Fonts are too small in OSX 10.2.8 - Anybody know how to enlarge them? This is for all programs. I can't change the screen resolution as I'm using a LCD monitor with a fixed native resolution.
Safari annoyance - I'm getting a message which reads: (null) - New Settings New settings have been created for this application. Do you wish to use these settings from now on? Yes NO Right behind it, I sometimes get this one: Sync Server - New Settings New settings.. |
|
You can post new topics in this forum You can reply to topics in this forum You can edit your posts in this forum You can delete your posts in this forum You can vote in polls in this forum
|
|
|
|