Re: find/replace in BBEdit
Re: find/replace in BBEdit
- Subject: Re: find/replace in BBEdit
- From: Emmanuel <email@hidden>
- Date: Mon, 11 Dec 2000 08:26:38 +0100
At 5:20 +0100 11/12/00, Rick Plummer wrote:
>
I need to open a file (BBEdit will open it) and replace a string in one
>
line with a
>
reference pulled from Applescript, then resave the file with the original
>
type and
>
creator.
Smile is just designed for this ...
------------------------ untested
tell application "Smile"
set theNewWindow to (open alias theFile)
change "blah" into "something else" in theNewWindow
-- or something like:
set paragraph 999 of theNewWindow to "something else"
close theNewWindow saving yes
end
---------------------------------
HTH
Emmanuel