action:Search_and_Replace
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| action:Search_and_Replace [2021/10/14 08:01] – peternlewis | action:Search_and_Replace [2023/09/12 09:30] (current) – peternlewis | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| Prior to v8.0 there were separate Search and Replace Variable and Search and Replace Clipboard actions and the results always went back to the source variable or clipboard. | Prior to v8.0 there were separate Search and Replace Variable and Search and Replace Clipboard actions and the results always went back to the source variable or clipboard. | ||
| - | {{: | + | {{: |
| You can search for: | You can search for: | ||
| Line 37: | Line 37: | ||
| {{: | {{: | ||
| + | |||
| + | Note that you can use tokens in the replace field (eg `%Variable%Whatever%`), | ||
| + | |||
| + | ```applescript | ||
| + | tell application " | ||
| + | set src to getvariable " | ||
| + | set s to getvariable " | ||
| + | set r to getvariable " | ||
| + | set o to search src for s replace r with regex | ||
| + | end tell | ||
| + | ``` | ||
| ===== See Also ===== | ===== See Also ===== | ||
action/Search_and_Replace.1634198518.txt.gz · Last modified: by peternlewis
