revlet and path
Phil Jimmieson
phil at liverpool.ac.uk
Thu Aug 6 10:21:25 EDT 2009
It seems that a number of system "globals" don't have values in revlets.
I tried a small program to display the following:
defaultfolder
platform
systemversion
environment
All of which seem to be empty in a revlet.
On 6 Aug 2009, at 14:29, Tereza Snyder wrote:
>
> On Aug 5, 2009, at 2:08 PM, Richard Gaskin wrote:
>
>> Yves COPPE wrote:
>>> Here is a very simple script :
>>> on mouseUp
>>> put empty into fld "resultat"
>>> set itemDel to "/"
>>> put item 1 to -2 of the effective fileName of this stack into
>>> tPath
>>> set itemDel to comma
>>> put tPath into fld "resultat"
>>> end mouseUp
>>> In the IDE, it gives the right path
>>> when I build a revlet, put it on my server and open it with Safari,
>>> it gives ... nothing ! fld "resultat" stays empty
>>> Any idea ?
>>
>> The stack file on your server isn't the one that's running. Like
>> web pages, what the browser gets is a downloaded copy of the stack
>> file. This copy lives in RAM, so its fileName will be empty.
>
> It sounds like this means that I can't reliably reference files—like
> external stacks or configuration files—'next to' my revlet on the
> server. Is this true? How about the value of 'the directory' or
> 'default folder'? How about referenced images?
>
> I routinely store application resources in a folder, 'resources', next
> to my apps that contain all kinds of stuff. I compute paths at startup
> depending on the effective filename. Do I have to change my
> architecture?
>
>
> t
>
>
> --
> Tereza Snyder
> Califex Software, Inc.
> <www.califexsoftware.com>
>
>
>
>
> _______________________________________________
> 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
--
Phil Jimmieson phil at liverpool.ac.uk (UK) 0151 795 4236 (Mobile)
07976 983164
Computer Science Dept., Liverpool University, Ashton Building, Ashton
Street
Liverpool L69 3BX http://www.csc.liv.ac.uk/~phil/
I used to sit on a special medical board... ...but now I use this
ointment.
More information about the use-livecode
mailing list