Re: Challenge: 'tell' different versions of an app
Re: Challenge: 'tell' different versions of an app
- Subject: Re: Challenge: 'tell' different versions of an app
- From: Chris Paveglio <email@hidden>
- Date: Wed, 13 Jul 2011 19:49:45 +0000
- Thread-topic: Challenge: 'tell' different versions of an app
Well this is how Applescript has always worked - the newest install or
highest version always runs when called cold, unless any version of the app
is *already* running.
In order to do this testing, you'll still have to quit both copies of
FancyApp, then start the one you want to test, then start the test script
which at that point will target the running version of FancyApp. Do my
testing, then quit script and app, then start other version of FancyApp and
redo testing. That's how I would do it, I don't know of a better way.
I don't think you need to swap out any files if the test script is exactly
the same, save for application version.
Chris
On 7/13/11 3:00 PM, "email@hidden"
<email@hidden> wrote:
> This post regards one of the frequent battles I've had with AppleScript,
> Launch Services et al in trying to control which version or installation of an
> "application" gets invoked by a script.
...
>
> ? Run the test on the path to the old version.
> ? Quit the app.
> ? Swap out the 'Contents' directory inside the app package with the new
> version.
> ? Run the test again; this time it will be on the new version.
>
> Seems to work.
>
> Does anyone know a better way to do this?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden