Re: replacing text
Re: replacing text
- Subject: Re: replacing text
- From: "Stephen Swift (aka Burnum)" <email@hidden>
- Date: Thu, 14 Jun 2001 12:47:05 -0400
At 6/13/01 4:32 PM, g_vkatta (email@hidden) Wrote:
>
can some one plesae provide me with the script that selects the folder
>
consisting of many html files and deletes the text in all the html files at a
>
stretch.
BBEdit is your friend. Here is a script I designed to go through a list of
files and delete a line:
-- 2 is the line number you want to delete.
-- The line number must be the same for every file.
-- You can't drop a folder on this script.
-- You can select a bunch of files and drop them on it.
on open TheFiles
repeat with AFile in TheFiles
tell application "BBEdit 6.1"
activate
open AFile
select line 2 of text window 1
delete selection
save text window 1 to AFile
close text window 1
end tell
end repeat
end open
HTH
Stephen Swift ?' The Burnum Man
email@hidden
-----------------------------------------------
"Steve Jobs will use anybody to his own advantage. He will say one thing
and anybody who heard it would think that he was saying 'Maybe yes' or
'Maybe no.' You could never tell what he was thinking." -Steve Wozniak