file name or dir changed from the desktop
Scott Morrow
scott at elementarysoftware.com
Fri Jul 1 15:14:53 EDT 2005
Thanks all,
(Mark, I haven't switched to rev 2.6 yet which may explain why <
SpankUser > doesn't work here. : )
>
-Scott Morrow
Elementary Software
(Now with 20% less chalk dust !)
web http://elementarysoftware.com/
email scott at elementarysoftware.com
-----------------------------------------------------------------
Recently -Eric Chatonet, Mark Wieder & Jeanne A. E. DeVoto wrote:
> That's a bad user behaviour (probably rare) but...
> I don't know (may be others will) how to get the information from the
> desktop manager but when an user saves, you could check first if the
> file does exists and act accordingly.
> Eric Chatonet.
> ----------------------------------------------------------------
> So Smart Software
> At 3:13 AM -0700 6/30/2005, Scott Morrow wrote:
>> Although changing the file name of an open file seems like a bad
>> idea, I'm sure one of my users will do it and then get confused when
>> their newly named file doesn't contain the most recent changes. I
>> noticed that Appleworks 6 (OSX) doesn't have a problem with the file
>> name being changed.
>
> It's a design flaw that goes back to HyperCard. HC and Rev alike use
> hardcoded file paths, rather than filesystem specs. (It's worth noting
> that some OS X applications do this too and exhibit similar problems.)
>
> In the case of Rev, there's some excuse for it, since a file path is a
> simple string (and thus can be dealt with easily in Transcript). But
> it does have the effect that if you change a file's path while it's
> open, either by renaming it or moving it, things break. I'm not sure
> there's a good workaround.
> --
> jeanne a. e. devoto ~ revolution at jaedworks.com
> http://www.jaedworks.com
> on ChangeFileNameBehindMyBack
> Spank User
> end ChangeFileNameBehindMyBack
>
> --
> -Mark Wieder
More information about the use-livecode
mailing list