Re: Variables
Re: Variables
- Subject: Re: Variables
- From: Paul Berkowitz <email@hidden>
- Date: Mon, 15 Oct 2001 23:35:36 -0700
On 10/15/01 11:11 PM, "Leigh Trevaskis" <email@hidden> wrote:
>
Hi guys,
>
>
I'm relatively new to Applescript, so bare with me. I have created a script
>
that uses a variable set as ((path to startup disk) as text). Now when I run
>
the script it works ok. Then I rename the hdd and it still holds onto it's
>
old value. Is there another way of defining the variable or a way around
>
this?
>
Just tell it to get ((path to startup disk) as string) whenever you need
it, and it will give you the current value.
Or set your variable
set var to (path to startup disk)
as an alias (the default). Whenever you need just its string path just use
var as string
and it will find the alias, no matter what you have renamed it to or where
you've moved it, and evaluate its current path, If you're saving the
variable as a script property between runs, that's how to do it.
--
Paul Berkowitz
References: | |
| >Variables (From: Leigh Trevaskis <email@hidden>) |