This question may seem strange. However I’m in the need of interacting with an application that is releasing worldwide with different names, eg. AppEN, AppGB, AppDE etc…
I am looking for a solution that allow me to use this command:
tell application process "AppnameGB"
However it should work with all the different variations of this application. I don’t know if this is possible but searching for a string in the application name could do the trick: tell application process that contain in its name “Appname”.
If the process is already open, you can use something like this:
Telling Finder to list files is really slow:
You can use
do shell scriptthough:set a to do shell script "mdfind 'kMDItemContentType==com.apple.application-bundle&&kMDItemFSName==Text*' | head -n1"would also search outside the applications folder.