how do you get the evaluated value of a system variable rather than the literal text value in the case of a system variable like $HOME?
Mark Smith
mark at maseurope.net
Fri Jun 30 21:00:35 EDT 2006
To get the result you want, it would be
set the itemDelimiter to "/"
get item 2 to 4 of ($HOME & "/Aplications")
Simply putting $HOME in brackets will get it evaluated.
OTOH, you could also use the specialFolderPath function:
get specialFolderPath("Applications")
Best,
Mark Smith
On 1 Jul 2006, at 01:46, Josh Mellicker wrote:
> Sorry if this has been answered many times, I couldn't find it.
>
> My noob brain is twisted...
>
>
>
> Let's say a stored destination file path is:
>
> $HOME,/Applications/
>
> But if you say:
>
> item 1 of tFilePath & item 2 of tFilePath, instead of what you want:
>
> /Users/Eggbert/Applications
>
> you get literally:
>
> "$HOME/Applications"
>
>
>
> --
>
> I know you could make a series of case statements:
>
> case item 1 of tFilePath = "$HOME" then put $HOME & item 2 of
> tFilePath into tFilePath
>
> and cover all the other specialFolders and other possibilities, but
> that is lame, right?
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list