Actually this didn't work the way I had hoped:

    put "$HOME" & "/Applications/" into t
    set the itemDel to "/"
    get item 2 to 4 of (t)
    answer it

This does not deliver the actual system variable :(

Is there a way to do this?



On Jun 30, 2006, at 6:00 PM, Mark Smith wrote:

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
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to