Re: "Where is application ...?" dialog stopping automation
Re: "Where is application ...?" dialog stopping automation
- Subject: Re: "Where is application ...?" dialog stopping automation
- From: David Weiss <email@hidden>
- Date: Wed, 19 Jan 2005 12:20:48 -0800
More information about this problem:
The Goal:
To programmatically register the applications so we do not have to
launch them prior to running our test scripts. We do not want to
launch them before we start the tests because that invalidates the
first run state of our applications.
More Details:
This may have to do with the security features from Security Update of
06-07-2004. It appears there is this idea of “trusted” applications -
ones that are not only registered with Launch Services, but have been
run before. My guess is that the compiled AppleScript libraries are
trying to access the dictionaries of applications that are NOT trusted
yet, and are prompted with the “where is application foo” dialog.
The question for Apple is how to “register” an application as trusted?
So the compiled AppleScript libraries will not have to ask for
references to the applications.
The following comes from one of the Apple Discussion lists:
“Please note that after the Security Update of 06-07-2004,
LSFindApplicationForInfo will not find applications which have never
been launched before. In a development environment, this can happen
more often than you would like because you're rebuilding the app
frequently, so it each time it may look like a new app to LS (depending
on how it's rebuilt). The LSRegister calls do not cause an application
to become, as we say, "trusted". LSRegister does allow an "untrusted"
app's document icons and kind strings to appear in the UI, but the user
will see the first-launch warning if the untrusted app is going to be
launched via opening a document or a URL.
I admin this is a little obscure for most, but we've got a whole
Automation system built with AppleScript, and this is one issue that
has come up.
David Weiss
On Jan 19, 2005, at 11:00 AM, David Weiss wrote:
We have a problem with compiled AppleScripts prompting us to locate
recently installed Microsoft applications (copied to a local folder by
scripting Finder). We have also ran LSRegisterFSRef() on the
application files after copying them to the local machine. What else
do we need to do to get AppleScript to recognize that we have copied
and registered an application on a machine and not prompt us to locate
it? AppleScript is able to locate the applications without prompting
if we have already launched all of the applications in the suite before
loading the compiled script.
David Weiss
_______________________________________________
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