Re: Scripts no longer work in 9.2.2
Re: Scripts no longer work in 9.2.2
- Subject: Re: Scripts no longer work in 9.2.2
- From: John W Baxter <email@hidden>
- Date: Thu, 6 Dec 2001 20:47:05 -0800
Michelle Steiner <email@hidden> wrote
>
On 12/6/01 9:06 AM, Paul Berkowitz <email@hidden> wrote:
>
>
>There's a bug (yet another Finder bug). I thought everyone knew about it. If
>
>you put
>
>
>
>tell application "Finder"
>
> path to desktop
>
>end tell
>
>
--> alias "Dora:Desktop Folder:"
Mac OS 9 (and way way back):
Once you have a second volume mounted, (given that Dora is the name of your
startup volume), the above is only some of the desktop. Each volume has
(potentially) volume:Desktop Folder. What we see as the Desktop is a
finder creation which is the union of the desktops. [One doesn't need Mac
OS X and hidden filename extensions to have duplicate names in the same
place.] In some Finder versions, if you specifically ask for the path to
an item in the Desktop Folder of some additional mounted volume, Finder
will pretend that the item is on the startup volume.
Mac OS 9 with multiple users, not running as the owner: I'm not sure.
Mac OS X
Each user has a folder named Desktop, found in a place like this
tell application "Finder"
set dt to path to desktop folder --in user domain
end tell
dt
--> alias "Blake:Users:john:Desktop:"
I commented out the --in user domain because it doesn't work for "Desktop
Folder". It's a normal folder which happens to be in the directory tree of
the startup volume (for extra credit: or whatever volume you've
successfully moved the Users folder to).
--John