I’m trying to get a shortcut to work as a search and replace across all drafts in a workspace.
The basic structure is the same as that used in the shortcut Greg provided: Workspace Summary.
I have substituted the "Replace with each item in… action for the actions Greg uses.
- Get Drafts from <. > folder of workspace < > (one of the Drafts actions)
- Repeat with each item in <. > (one of the Scripting actions)
- Replace < >with <. > in < > (one of the Documents actions)
- End Repeat
I had no luck with this. I tried as many variations with the Repeat action as I could think of. None resulted in a successful replacement - actually in no action at all. No error, and no modification to a draft - the shortcut completes but nothing happens.
I was able to substitute other actions for the Replace action and they worked, so I am pretty sure that the problem is with how I am using the five possible entries in the Replace action:
Replace < > with < > in < > and two switches.
The first switch is for case matching and the second for using regex. I’ve turned both off – I’m not trying anything fancy, just replacing one string with another.
I’ve tried various delimiters for the existing string and the replacement string. I’ve tried “Drafts” and “Repeat item” for the third parameter in the Replace action. Nothing I’ve tried works.
Any help in making this work would be appreciated.