Re: can't 'tell' specific version of application (filemaker pro)
Re: can't 'tell' specific version of application (filemaker pro)
- Subject: Re: can't 'tell' specific version of application (filemaker pro)
- From: Nigel Garvey <email@hidden>
- Date: Thu, 5 Jun 2003 01:49:22 +0100
Seth Tager wrote on Wed, 4 Jun 2003 13:19:36 -0700 (PDT):
>
I'm using os x, but I'm having trouble choosing which
>
version of FileMaker Pro will respond to applescript
>
commands. My system seems to get confused between v5,
>
which is a Classic app, and v6, which is Carbon.
>
>
I've tried changing the name of the application, but
>
applescript seems to insist on changing the name back
>
to the unwanted version when I Check Syntax.
>
>
Any idea how to positively identify the version of
>
FileMaker Pro I want to use?
I don't have time to check again tonight, but I think you have to open
the file of the required version first - using the Finder. The 'tell'
command sends out the application's creator code - which the system
checks first against the running processes and then against the desktop
file. If your preferred version is already running, it'll take priority
over the version preferred by the desktop file. Otherwise, the
desktop-preferred version will be launched and will become the target of
the 'tell'.
As I remember, using a path with the 'tell' command - eg:
tell application "path:to:preferred:version"
-- etc.
... is not enough to override the desktop file. The script merely
consults your preferred version's application file to get the creator
code and then issues instructions to the system using this. If your
preferred version isn't already running, the system will look up the
creator code in the desktop file and launch whichever version is favoured
there anyway.
So:
tell application "Finder" to open file "path:to:preferred:version"
-- Delay?
tell application "FileMaker Pro"
-- etc.
NG
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.