Is there any Macro with which to get a clean Find Window. F.e. if I enter colored text „Use selection for Find“, and then want to do a new search without attributes, I had hoped that applying a macro like this would do:
Find and Replace '', '', '-uE!'
But I find that starting to typ my find text, Apple is still using the earlier color and setting the Find window to „Attribute Sensitive“, which I have then to unclick manually.
A related question: Is it possible by means of a macro, to put the „Attribute sensitive“ button of (but keeping the find text already entered)?
Find window without attributes
- martin
- Official Nisus Person
- Posts: 5227
- Joined: 2002-07-11 17:14:10
- Location: San Diego, CA
- Contact:
Re: Find window without attributes
You'll want to set a plain string in the find window, without any attributes, which can be done like so:js wrote:Is there any Macro with which to get a clean Find Window. F.e. if I enter colored text „Use selection for Find“, and then want to do a new search without attributes, I had hoped that applying a macro like this would do:
Find and Replace '', '', '-uE!'
But I find that starting to typ my find text, Apple is still using the earlier color and setting the Find window to „Attribute Sensitive“, which I have then to unclick manually.
Code: Select all
$plainString = Cast to String ''
Find $plainString, '-uE!'
This is possible, but a little trickier than you would think, here's how:A related question: Is it possible by means of a macro, to put the „Attribute sensitive“ button of (but keeping the find text already entered)?
Code: Select all
$expression = Read Find Expression
Find $expression, '*-u!'
Re: Find window without attributes
Thanks for your help. And glad to know that it was not that simple as I had thought it was.