• 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: replace text in chunks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: replace text in chunks


  • Subject: Re: replace text in chunks
  • From: Andy Wylie <email@hidden>
  • Date: Sat, 14 Dec 2002 10:03:43 +1300

on Fri, 13 Dec 2002 11:09:37 -0600 Laine Lee wrote:

>This script works fine if search text and replace text are the same length.
>What can I do to make it work if they have different lengths?

the simplest solution would be to write to a new file, you could store the
new text and write it to the hosed file at the end of the loop but I don't
know how that would work with large texts... or you could do the length math
in the TID handler.
The error trap's close access should appear before the dialog to work
properly, also 'error' is more flexible in what it can display than
'display dialog'.

_____________________________ Andy
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Newbie with problems
  • Next by Date: Re: replying to messages in Mail.app
  • Previous by thread: Re: replace text in chunks
  • Next by thread: Re: replace text in chunks
  • Index(es):
    • Date
    • Thread