Re: What the "tell" is going on?
Re: What the "tell" is going on?
- Subject: Re: What the "tell" is going on?
- From: "Gary B. Little" <email@hidden> (by way of Pier Kuipers)
- Date: Sat, 23 Jun 2001 23:28:17 +0100
Pier,
Thanks, but this won't work because the script won't compile when I
include Fetch-related commands in the second tell block. Probably
because the compiler doesn't know the dictionary to use since the
name of the application is specified through a variable.
Gary
on 6/22/01 13:49, Pier Kuipers at email@hidden wrote:
At 07:13 -0700 22/6/01, Gary B. Little wrote:
Here's my problem. I've got a Fetch-related script that was compiled when
the old Fetch 3.0.3 was one my system. When I upgraded to Fetch 4 and
removed Fetch 3.0.3, the script now asks me "Where is Fetch?" even though
the creator type for Fetch has not changed. Strangely, it even asks me when
Fetch 4 is already running.
Sounds like your script included a tell statement in the form of
tell application "Fetch 3.0.3"...
Which should be changed for the upgraded application to
tell application "Fetch 4.x"...
Which is, of course, too cumbersome. You mention creator type, and
that is the best way to call an application if you want to avoid the
dreaded "where is application?" dialog. Your script would look
something like
tell application "Finder"
open application file id "FTCh"
set AppFetch to name of result
end tell
tell application AppFetch
display dialog "Hello."
end tell
Hope this helps;
Pier.