I found a solution by creating a temporary record:
set prevReplacementString to (replacement string of (get current search
strings))
if (prevReplacementString is missing value) then set prevReplacementString
to ""
set searchRecord to {search string:prevSearchString, replacement
string:prevReplacementString}
set current search strings to searchRecord
Le lundi 9 décembre 2024 à 15:45:20 UTC+1, Zax a écrit :
> With Applescript, is there a way to **set* search string of current
> search strings to* a value?
> After a custom search with an Applescript, I would like to update this
> BBEdit property in order to use "Find next" menu item.
>
> Thank you.
>
> Le dimanche 4 mars 2018 à 02:00:50 UTC+1, Christopher Stone a écrit :
>
>> On 02/06/2018, at 23:50, Jean-Christophe Helary <[email protected]>
>> wrote:
>>
>> On Feb 5, 2018, at 11:44, Christopher Stone <[email protected]>
>> wrote:
>>
>> Under some circumstances you have to expand the property before you can
>> get to the sub-properties:
>>
>>
>> How can one know in which case that it is necessary?
>>
>> ------------------------------
>>
>> Hey Jean-Christophe,
>>
>> There's no definitive means to determine this other than experimentation.
>>
>> I never use “get” unless I get results other than what I think are kosher
>> from a command – then I try using a “get”.
>>
>> --
>> Take Care,
>> Chris
>>
>>
--
This is the BBEdit Talk public discussion group. If you have a feature request
or believe that the application isn't working correctly, please email
"[email protected]" rather than posting here. Follow @bbedit on Mastodon:
<https://mastodon.social/@bbedit>
---
You received this message because you are subscribed to the Google Groups
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/bbedit/22c8e486-eb71-4736-8799-5c5d73b9dc19n%40googlegroups.com.