Re: tell application "FileMaker Pro/Developer"
Re: tell application "FileMaker Pro/Developer"
- Subject: Re: tell application "FileMaker Pro/Developer"
- From: Christopher Nebel <email@hidden>
- Date: Wed, 3 Sep 2003 19:06:24 -0700
AppleScript is less static than you might think about this sort of
thing. If you want to store all your scripts as plain text, then yes,
this is a problem, but if you store them as compiled scripts, then they
try to adapt automatically. What look like static application
references are actually stored as alias-plus-creator-code objects;
AppleScript can then locate a similar application if the original goes
missing. If all the different FileMakers have the same creator code
(which you say they do), then it will find the "current" FileMaker.
The sticky bit is what "current" means if you've got more than one
version; for best results, only keep one copy of FileMaker.
--Chris Nebel
AppleScript Engineering
On Sep 3, 2003, at 10:14 AM, David Crowe wrote:
This works, but isn't a completely generic solution because the "using
terms from" still requires the name of an application to be given to
it statically so that it can access the dictionary at compile time.
At 11:15 PM +0100 9/2/03, John Delacour wrote:
At 2:58 pm -0600 2/9/03, David Crowe wrote:
tell application "FileMaker Pro" -- which now has to be: tell
application "FileMaker Developer"
I'd like to say something like:
tell application id "FMP5" -- Because File Maker Pro/Developer
5/5.5/6 all have the same id
... but that doesn't seem to work.
Read this carefully -- it's not obvious. I wrote this script with
Eudora Light 1.5.5 running and existing. I then saved and closed the
script window, stuffed Eudora Light 1.5.5 and deleted the original --
it no longer existed.
tell application "Finder" to name of application file id "CSOm"
set _eudora to application (result as Unicode text)
--> application "Eudora"
using terms from application "Eudora Light 1.5.5"
tell _eudora
get setting 1
end tell
display dialog result
end using terms from
I then reopened the script in SE to see that the fourth line now reads
using terms from application "Eudora"
and the script continues to work. You can do the same thing.
Or you can use Smile, which does the same thing in a different way.
_______________________________________________
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.