[rebol[]
my-header: system/script/header
xu: does[? my-header]
do %something.r ;which uses xu
]

>Hi all,
>
>what is the best way to access the header of a script? Of
>course, I can use, e.g. system/script/header/title , but 
>assume you have two scripts ...
>
>; ---- first script ----
>REBOL [
>  Title: "Script 1"
>  File:  %script1.r
>]
>
>; do something
>
>; ---- second script ----
>REBOL [
>  Title: "Script 2"
>  File:  %script2.r
>]
>
>do %script1.r
>
>print system/script/header/title
>
>; ---- end of scripts ----
>
>You'll get "Script 1", because this script has been loaded
>last ...
>
>
>Kind regards,
>
>Ingo
>-- 
>To unsubscribe from this list, please send an email to
>[EMAIL PROTECTED] with "unsubscribe" in the 
>subject, without the quotes.
>
-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to