• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: replacing text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >replacing text (From: g_vkatta <email@hidden>)

  • Prev by Date: Re: Question about "info for" command
  • Next by Date: Re: newbie question
  • Previous by thread: Re: replacing text
  • Next by thread: Re: replacing text
  • Index(es):
    • Date
    • Thread