Re: How to "Tell" a varible name
Re: How to "Tell" a varible name
- Subject: Re: How to "Tell" a varible name
- From: Bill Cheeseman <email@hidden>
- Date: Thu, 08 Feb 2001 04:43:45 -0500
on 2/7/01 5:45 PM, SeaSoft Systems at email@hidden wrote:
>
The problem I am having is that the version numbers of the
>
application I want to script are changing frequently (i.e., "Webstar
>
4.4b1", "Webstar 4.4b2", etc.) They all have the same creator code
>
and the same applescript dictionaries, but they are physically
>
different applications. I always want the script to target to
>
whichever one is running when the script fires, that is, the single
>
finder process whose creater code I have given "WWW*"
There is a very easy way to do this in Mac OS 9 and newer. Put an alias file
in your Scripting Additions folder pointing to the desired version of the
application, then tell the alias to do what you will. The alias can have any
name you like, even a cryptic abbreviation. You can have multiple aliases
pointing to different versions of the same application, and identify them by
version number in the name of the alias to avoid confusion.
This is explained in the revised version of the Mac OS 9 Technote, here:
<
http://devworld.apple.com/technotes/tn/tn1176.html>
-
Bill Cheeseman, Quechee, Vermont <
mailto:email@hidden>
The AppleScript Sourcebook
<
http://www.AppleScriptSourcebook.com/>
Vermont Recipes-A Cocoa Cookbook
<
http://www.stepwise.com/Articles/VermontRecipes/>