Re: (no subject)
Re: (no subject)
- Subject: Re: (no subject)
- From: "David A. Cox" <email@hidden>
- Date: Fri, 9 Dec 2005 16:54:44 -0800
That does look interesting. But I call these apps in several
different handlers, and I don't know if I could wrap my mind around
the extra complexity :).
Luckily, the suggestion by Kai worked well for what I was trying to
do. But I am going to keep this suggestion around as well, as I
suspect it will come in handy....
DAC
On Dec 9, 2005, at 2:23 PM, Luther Fuller wrote:
David A. Cox asked ...
The problem is that when I run the program on a client machine, it
requests info on where QuickTime Broadcaster and Audio Hijack Pro
are if
they are not installed, even if they are not selected as the apps
that
will be doing the recording. I assume this is so that the
application can
understand the dictionary terms for the applicaitons. I do not
want to
have to develop 3 versions of the applicaiton (one for each of the
recording options) and so I am contacting you.
On first reading this, my reaction was "Oops! I didn't think of
that last week when I wrote a script that referenced applications
that the user may not have." So I copied the script to another
computer not having one of the applications and ran it. It worked
perfectly and did not ask for the missing application. (I have this
script that works perfectly. Does anyone have any suggestions for
screwing it up?)
After taking a look at my script, I see why it works correctly --
Handlers containing a reference to a missing application are not
called. Here's a snippet:
short name of (info for (path to frontmost application))
try
if the result is "Smile" then
set docAlias to my getDocFromSmile()
else if the result is "Script Editor" then
set docAlias to my getDocFromScriptEditor()
else if the result is "Finder" then
set docAlias to my getDocFromFinder()
else
return
end if
on error
return
end try
Since your applications aren't running when your script is
launched, you can't use this. You might want your script to begin
with a 'choose application', allowing the user to specify the
application first, then call the appropriate handler.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (Applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
40u.washington.edu
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >(no subject) (From: Luther Fuller <email@hidden>) |