Re: scripts revert to <<class foobar>>
Re: scripts revert to <<class foobar>>
- Subject: Re: scripts revert to <<class foobar>>
- From: Paul Skinner <email@hidden>
- Date: Tue, 12 Aug 2003 16:58:07 -0400
On Tuesday, August 12, 2003, at 04:10 PM, Matthew Galaher wrote:
Is there a standard place(s) to look or way to check what scripting
additions a machine has installed?
4 places actually...
AllOsax()
NetworkOsax()
SystemOsax()
LocalOsax()
UserOsax()
on AllOsax()
set AppleScript's text item delimiters to return
try
set NosaxList to my NetworkOsax()
end try
try
set SosaxList to my SystemOsax()
end try
try
set LosaxList to my LocalOsax()
end try
try
set UosaxList to my UserOsax()
end try
return NosaxList & SosaxList & LosaxList & UosaxList & "" as text
end AllOsax
on NetworkOsax()
set AppleScript's text item delimiters to return
set osaxList to {}
try
set osaxList to (list folder (path to scripting additions from
network domain) without invisibles)
end try
return osaxList & "" as text
end NetworkOsax
on SystemOsax()
set AppleScript's text item delimiters to return
set osaxList to {}
try
set osaxList to (list folder (path to scripting additions from System
domain) without invisibles)
end try
return osaxList & "" as text
end SystemOsax
on LocalOsax()
set AppleScript's text item delimiters to return
set osaxList to {}
try
set osaxList to (list folder (path to scripting additions from local
domain) without invisibles)
end try
return osaxList & "" as text
end LocalOsax
on UserOsax()
set AppleScript's text item delimiters to return
set osaxList to {}
try
set osaxList to (list folder (path to scripting additions from user
domain) without invisibles)
end try
return osaxList & "" as text
end UserOsax
PS
Begin forwarded message:
I have never been able to understand why a script that contains the
line such as 'set diskName to name of startup disk' changes to 'set
diskName to name of +class sdsk;' when moved to another machine. If
any one can explain or point me in the direction of a document that
would explain why this happens (security, compiling problems?...) I
would appreciate it. TIA
I have always assumed that it was because some "extension" was broken
or missing.
--
_______________________________________________
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.