The following macro is designed to work with screen shots using a user prompt. For some reason, it's creating two simultaneous prompts on top of each other [see attached gif], and I can't figure out why this is.
Hi @paulcristo, I tried out your macro and it works without any problem on my system.
I did get to replicate your problem, however, by having two copies of your macro (in other words, I just duplicated your original macro). That way it was firing twice.
I couldn't find any other way of getting the problem to happen.
So - do you have another copy of your macro (maybe version 1.0 that you haven't disabled) somewhere?
/Users/chris/Desktop/.Screen Shot 2021-07-13 at 10.55.27.png
/Users/chris/Desktop/Screen Shot 2021-07-13 at 10.55.27.png
Set your macro to ignore file names starting with a dot, and you should be able to get rid of the ignore bit and speed up the macro. Something like this:
Thank you for the help. That seems to have worked! Would you mind walking me through the regex you coded? I tried plugging it into regex101.com and it doesn't like the syntax.
It doesn't like the syntax, because it uses forward slashes as delimiters. Change the delimiters to something else, and it'll work.
/Users/chris/Desktop/.Screen Shot 2021-07-13 at 10.55.27.png
^.+/\.[^/]+$
^ == Beginning of line.
.+ == Any character one or more.
/ == Literal “/” with above it's greedy and will find until the last match.
\. == Escaped dot (. is a reserved character and must be escaped to user as a literal).
[^/]+ == Any character NOT “/” one or more.
$ == End of line.
That is odd isn’t it? My immediate thought was to look for a temporary file but I didn’t find one like you did which is why I thought it might be two macros triggering. Maybe I’ll take another look tomorrow when I get time! Cheers, Taj.