Any other way to refer to an application other then with its name

I have one particular problem with file maker pro.
On the mac there are both FMP11 and FMP12 installed.
I have a script which makes FMP open a doc and do some processing.
The script worked so far OK but the new is that I have both FMP11 and FMP12 docs mixed. So I have to open appropriate FMP to do the job.
The trouble is that they are both registered with the same name in the AppleScript Application listing, so if I ā€œtell application File Maker Pro Advancedā€, it does not strictly define to which one am I telling.
I tried to trick the problem by quitting all FMPs and then open a FMP11 or FM12 dummy document through Finder, this will start the appropriate FMP version, but then when I want to switch to it with activate, or I use the tell for the first time after that, if the one which is open is FMP11 all works fine, if the FMP12 is open, the tell statement will open the FMP11.
The strangest thing of all is that in another simplified version of the script, it works fine.

So my question is: is there any other way of using the tell application then with the registered Name of the application?

I tried to get the properties for both FMP11 and FMP12 and here is the result:

[i]FMP11

get properties of application process ā€œFileMaker Proā€
ā†’ {enabled:missing value, unix id:63125, file:alias ā€œMACHD:Applications:FileMaker Pro 11 Advanced:FileMaker Pro Advanced.app:ā€, creator type:ā€œFMP7ā€, subrole:missing value, entire contents:{}, selected:missing value, application file:alias ā€œMACHD:Applications:FileMaker Pro 11 Advanced:FileMaker Pro Advanced.app:ā€, orientation:missing value, role:ā€œAXApplicationā€, accepts high level events:true, file type:ā€œAPPLā€, value:missing value, position:missing value, id:25741451, displayed name:ā€œFileMaker Pro Advancedā€, name:ā€œFileMaker Proā€, class:application process, background only:false, frontmost:false, size:missing value, visible:true, Classic:false, role description:ā€œapplicationā€, maximum value:missing value, architecture:ā€œi386ā€, partition space used:0, short name:ā€œFileMaker Pro Advancedā€, focused:missing value, minimum value:missing value, help:missing value, title:ā€œFileMaker Pro Advancedā€, accepts remote events:false, description:ā€œapplicationā€, total partition size:0, accessibility description:missing value, has scripting terminology:true, bundle identifier:ā€œcom.filemaker.client.advancedā€}

FMP12

get properties of application process ā€œFileMaker Proā€
ā†’ {enabled:missing value, unix id:63199, file:alias ā€œMACHD:Applications:FileMaker Pro 12 Advanced:FileMaker Pro Advanced.app:ā€, creator type:ā€œFM12ā€, subrole:missing value, entire contents:{}, selected:missing value, application file:alias ā€œMACHD:Applications:FileMaker Pro 12 Advanced:FileMaker Pro Advanced.app:ā€, orientation:missing value, role:ā€œAXApplicationā€, accepts high level events:true, file type:ā€œAPPLā€, value:missing value, position:missing value, id:25753742, displayed name:ā€œFileMaker Pro Advancedā€, name:ā€œFileMaker Proā€, class:application process, background only:false, frontmost:false, size:missing value, visible:true, Classic:false, role description:ā€œapplicationā€, maximum value:missing value, architecture:ā€œi386ā€, partition space used:0, short name:ā€œFileMaker Pro Advancedā€, focused:missing value, minimum value:missing value, help:missing value, title:ā€œFileMaker Pro Advancedā€, accepts remote events:false, description:ā€œapplicationā€, total partition size:0, accessibility description:missing value, has scripting terminology:true, bundle identifier:ā€œcom.filemaker.client.advanced12ā€}[/i]

So it seems that the string appearing in Dictionary of the Apple Script Editor is the displayed name, short name or title propery but they are same for both apps.

So how can I open and tell to the appropriate FMP version, any idea?

Browser: Safari 534.57.2
Operating System: Mac OS X (10.7)

Hi,

use the bundle identifier in conjunction with application id
for FMP 11

tell application id "com.filemaker.client.advanced"

for FMP 12

tell application id "com.filemaker.client.advanced12"

Works! Brilliantā€¦Thanks a lot.
For those who have similar problem, I found another post here http://macscripter.net/viewtopic.php?id=24569 which goes further in details.

In these conditions you can address the particular application file:


tell application "Finder"
	open file "BoxxyDisc:Applications:FileMaker Pro 11 Advanced:FileMaker Pro Advanced.app"
end tell
 

From here on tell application ā€œFileMaker Pro Advancedā€ ā€¦

No, this does not work, I opened a dummy file instead, but as long as I open FMP11 file which starts FMP11, the later used ā€œtell application FileMake Pro Advancedā€ works fine, but if I open a FMP12 file no matter FMP12 is started, the ā€œtell application FileMake Pro Advancedā€ will start FMP11! Strange but trueā€¦

:frowning: Oh! Works for me with other applications, but no FMpro 12 here. Conclusion: it will start failing soon! Time to revise, because I will have that problem. Thanks.