Re: OSX bug? is there a work around
Re: OSX bug? is there a work around
- Subject: Re: OSX bug? is there a work around
- From: Christopher Nebel <email@hidden>
- Date: Fri, 19 Oct 2001 11:01:24 -0700
On Friday, October 19, 2001, at 07:37 AM, Olivier Destrebecq wrote:
According to what i found this is not a bug, but a feature.
"When using the 'path to' scripting addition, if the request is for a
system
folder that does not exist, it will not be created; instead, the error
'Folder is not available in this operating system version' is returned"
That's not a feature, that's a known bug.
Unfortunately, there isn't any particularly good workaround. The best I
can suggest at the moment is to figure out where the folder ought to be
somehow and then hard-code that location in your script, with a small
bit of Finder scripting to create it if it doesn't exist.
The actual location of "temporary items" is a little weird, because it
depends on your user id, but unless you're seriously concerned about
multi-user security, anywhere in <startup disk>:private:tmp: will do.
--Chris Nebel
AppleScript Engineering