Re: AppleScript & HTML Again...
Re: AppleScript & HTML Again...
- Subject: Re: AppleScript & HTML Again...
- From: Nigel Smith <email@hidden>
- Date: Tue, 30 Mar 2004 13:56:25 +0100
On 29/3/04 17:20, "Peter Bunn" <email@hidden> wrote:
>
> Simple to fix -- just blacklist the user's download folder in ML, and maybe
>
> whitelist another folder as well.
>
>
By 'blacklist' (I'm only guessing) I assume you mean forbidding ML's
>
access to the user's default download folder. Which would involve user
>
input to set a property on setup?
Yes. There doesn't seem to be a "path to downloads folder" in AppleScript
and, while you could check "DownloadFolder" in
"~/Library/Preferences/com.apple.internetconfig.plist" in OSX, I haven't got
a clue how to make sense of the data it contains, nor how many browsers
honour this setting.
>
By 'whitelist', I'm guessing you mean allow _only_ the whitelisted folder
>
to be accessed by ML (?) Which would require an additional user input?
Yes, and that is probably the best way. Or you could generate it
automatically when ML first runs -- perhaps a Missing Link folder in the
user's prefs folder, but inside that a folder with a randomly generated name
to contain applications or aliases to applications. (I guess ML would have
to keep track of {user:folder} to cope with multiuser machines.) ML can/will
only call to that folder. A folder with a properly randomly generated name
would be harder to guess than most passwords, so would be good security. Add
a droplet like QuickLink to put aliases in the right place for that user.
Later,
Nigel
_______________________________________________
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.