I have a popup window where you select a filename and then click Open. I have a Pause until Ctrl key is pressed, so that gives me time to highlight the file I want to open. When I click the filename, I want that name to be stored in a variable.
The popup is really a generic question as I may use the method in multiple programs. It looks like a very standard file open, or save, window. In addition, for commercial secrets reasons I cannot reveal the specific program in this instance.
I am not sure if I have to use some Applescript or if there is a standard way to do this.
I just had a brainwave! When I select the file manually, then press Ctrl to continue my macro, could I have it do what you do when you try to rename the file. But instead of renaming it, you copy the highlighted text to the clipboard?