Re: OS X Scripting Additions folder Name has no space
Re: OS X Scripting Additions folder Name has no space
- Subject: Re: OS X Scripting Additions folder Name has no space
- From: John W Baxter <email@hidden>
- Date: Sun, 28 Oct 2001 10:53:18 -0800
At 11:31 -0500 10/28/2001, Jason Bourque wrote:
>
It has no space ScriptingAdditions!
>
>
Why? Anybody know?
It would seem that the AppleScript team, unlike others within Apple,
noticed that spaces in file and directory names cause even more problems in
Unix than they did when using MPW, so they squeezed out the space.
Fortunately, if you find the Scripting Additions folder the right way (with
path to), it will sort of work (although the default choice shown below (no
"domain" given) may not be ideal:
set answer to "Domainless: " & (path to scripting additions) & return
try
path to scripting additions from System domain
on error errs
errs
end try
set answer to answer & "System: " & result & return
try
path to scripting additions from user domain
on error errs
errs
end try
set answer to answer & "User: " & result & return
try
path to scripting additions from local domain
on error errs
errs
end try
set answer to answer & "Local: " & result & return
try
path to scripting additions from network domain
on error errs
errs
end try
set answer to answer & "Network: " & result & return
answer
Returns on my machine with my current login:
Domainless: Blake:System:Library:ScriptingAdditions:
System: Blake:System:Library:ScriptingAdditions:
User: Folder is not available in this operating system version.
Local: Blake:Library:ScriptingAdditions:
Network: Folder is not available in this operating system version.
There is no local domain ScriptingAdditions folder because I don't have one
in my home directory/Library. I could...and this is how each user on a
machine can have her own collection of Scripting Addtions if desired. And
my network domain is quite empty. Leave the System domain alone.
For SAs you want each user to have, the "local" domain folder is right (and
if a user wants to test a new version, the one within her home directory
will be used when she's logged in). (A clue as to part of what one does to
test new stuff more safely...a "testing" user couldn't wipe out a real
user's files and would leave production SAs alone. I think I'll go create
one. ;-))
--John
(as Jon Pugh knows, the double chin smiley which results from putting a ;-)
at the end of a parenthesized sentence is unfortunately appropriate here)
--
John Baxter email@hidden Port Ludlow, WA, USA