Re: [OSX]path to modem scripts folder
Re: [OSX]path to modem scripts folder
- Subject: Re: [OSX]path to modem scripts folder
- From: John W Baxter <email@hidden>
- Date: Thu, 12 Jul 2001 10:08:12 -0700
At 20:14 +1000 7/12/2001, Peter Gort wrote:
>
The AppleScript phrase "path to modem scripts folder", if executed by a
>
user, returns "That folder doesn't exist and you don't have permission
>
to create it." (blunt isn't it? <grin>)
>
>
If logged in as root, executing this line in script editor creates a
>
folder called "Modem Scripts", at /System/Library, and returns
>
"Macintosh HD:System:Library:Modem Scripts:" ignoring the default modem
>
scrips folder at "Macintosh HD:Library:Modem Scripts:" where all the
>
factory installed ones go. I suggested to Mac OS X feedback that the
>
call be implemented to return the globally availabe folder at
>
/Library/Modem Scripts, and an additional item be added for "User Modem
>
Scripts folder" to return ~/Library/Modem Scripts/ if that is necessary,
>
though I don't see why it should be. As I understand it, the
>
/System/Library/Modem Scripts/ should not be accessed by user level
>
apps anyway, so there is no need to add a reference to it for
>
AppleScript.
The problem is already taken care of, in a different way, as shown in the
path to dictionary entry. The pattern applies to any of the path to things
for which it makes sense. Try this:
display dialog ((path to modem scripts folder from local domain) as string)
try
display dialog ((path to modem scripts folder from network domain) as
string)
on error
display dialog "Network oops"
end try
display dialog ((path to modem scripts folder from user domain) as string)
try
display dialog ((path to modem scripts folder from System domain) as
string)
on error
display dialog "System oops"
end try
--John
--
John Baxter email@hidden Port Ludlow, WA, USA