[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] why shouldn't I store FSSpecs "between runs of MacPerl"



hi,

I've just begun the journey of learning MacPerl and I was thinking I'd
write a backup script which would read in a folder with aliases and back up
the respective files.

Anyhow, when I read about MakeFSSpec, in MacPerl power and ease, I thought:

- Neat I'll put in dialog asking for the location of the folder the first
time the script is run, convert the path to a filespec write that to a file
and use that thereafter.

Later when I was looking at MakeFSSpec in the reference part of the book
they tell me not to store filespecs between runs of MacPerl. For some
reason it's not a good idea, it still seems to be just that to me though;),
to avoid hardcoded paths by writing filespecs to file... I'm curious to
know why it's a bad thing to do?

Regards,
/Martin



# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org