Re: Path To blessed items (OSX and OS9): Odd or Normal?
Re: Path To blessed items (OSX and OS9): Odd or Normal?
- Subject: Re: Path To blessed items (OSX and OS9): Odd or Normal?
- From: Nigel Garvey <email@hidden>
- Date: Sat, 21 Jun 2003 01:15:03 +0100
Gary Lists wrote on Thu, 19 Jun 2003 20:11:19 -0400:
>
path to "xxxx" -- where xxxx is an OS-valid 4-char folder code
>
>
If the folder equivalent did not already exist, then a folder is created at
>
its default location. If a user does not have 'Apple Extras' or 'Users' and
>
then they see them sitting there when the script finishes, it is a bit
>
disconcerting ... and more than rude! ;)
I suppose the logic is that 'path to' returns (by default) an alias - and
you can't have an alias to a non-existent item. That then raises the
question: is a script that asks for the path to a standard, defined item
more likely to want to use that item or to be told simply that it doesn't
exist? Creating the item automatically seems to be an intelligent - if
not immediately expected - choice.
>
"" & (path to "usrs" as string)
[?]
>
We are not saying this is not the proper (um...well known?) behavior, though
>
it does seem unexpected. We do, however, need to deal with it in our
>
respective scripts.
I haven't thought this through for every possible 'path to' parameter,
but many 'blessed items' that may have been deleted would normally be in
known locations relative to other 'blessed items' that are bound to
exist, such as within the System folder or on the startup disk. It would
be a bit complicated with OS X's domains, but you might be able to work
out a cheat based on this. What is it your scripts are supposed to do?
NG
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.