Re: Get download folder
Re: Get download folder
- Subject: Re: Get download folder
- From: "Gary (Lists)" <email@hidden>
- Date: Fri, 25 Mar 2005 01:18:30 -0500
Sander Tekelenburg wrote [3/24/05 3:48 PM]:
> At 09:00 -0800 UTC, on 2005/03/24, Andrew Oliver wrote:
>
>> On 3/24/05 8:28 AM, "Imap McGrant" <email@hidden> wrote:
>>
>>> Does anyone know offhand how to get the path to the user's default
>>> download folder in AS?
>>
>> And which 'downloads folder' would that be?
>
> The one as defined by InternetConfig? Granted, Apple rolled InternetConfig
> into LaunchServices and then virtually stopped providing a UI to it. But
> AFAIK it still works the same. InternetConfig/LaunchServices aware apps pick
> up the default downloads folder that is defined in
> InternetConfig/LaunchServices.
>
>> Safari's download folder?
>
> Unless I'm mistaken, yes, the folder you define for downloads through Safari
> gets set as a default downloads location which other apps should pick up on.
> (But of course those other apps should allow you to define a different
> location, so there's no guarantee that the default downloads folder will be
> used by every app on any Mac.)
With the InternetConfig-aware applications, the downloads folder is
centralized. The stand-alone ICScriptor and/or the InternetConfig Commands
OSAX and/or the Internet Control Panel all share the same basic preference
values.
The full range of preference values available under IC/Internet Control
Panel/ICScriptor and/or the IC Commands OSAX, is:
real name, email address, mail account, mail password, signature,
organization, plan, quoting string, news name, news password, archie host,
umich host, infomac host, ph host, whois host, finger host, ftp host, telnet
host, SMTP host, NNTP host, Gopher host, LDAP Server, LDAP Searchbase, WWW
Home Page, WAIS Gateway, mail headers, news headers, download folder,
editor, FTP helper, news helper, Mail helper, Web helper, Gopher helper,
Finger helper, Telnet helper, TN3270 helper, WAIS helper, WhoIs helper,
NetPhone helper, XNetPhone helper, archie hosts, infomac mirrors, umich
mirrors, list font, screen font, printer font, binary file info, no proxy
domains, use socks, socks host, use HTTP proxy, HTTP proxy host, use FTP
proxy, FTP proxy host, FTP proxy user, FTP proxy password, FTP proxy
account, new mail flash icon, new mail dialog, new mail play sound, new mail
sound name, web background color, use passive FTP.
These also have 4-character codes [1].
With IC/ICScriptor/ICCommandsOSAX, you use 'SetICPreference' and
'GetICPreference' or roughly like that (but I'm pretty sure it's like that.)
So, you can say:
set dlFolder to GetICPreference download folder
In my set-up, changing the DL folder in one app that uses these prefs
changes it for all of them. If I change the DL folder while using IE, then
it is changed system wide for any app that consults the IC prefs.
Anyway, HTH.
--
Gary
[1]
rnam {real name}
emad {email address}
macc {mail account}
mpas {mail password}
sign {signature}
org {organization} --> ends with "space"
plan {plain}
quot {quoting string}
nnam {news name}
npas {news password}
harc {archie host}
humi {umich host}
hifm {infomac host}
hph {ph host} --> ends with "space"
hwho {whois host}
hfin {finger host}
hftp {ftp host}
htel {telnet host}
hsmt {SMTP host}
hnnt {NNTP host}
hgop {Gopher host}
ldsv {LDAP Server}
ldse {LDAP Searchbase}
www {WWW Home Page} --> ends with "space"
wais {WAIS Gateway}
mhed {mail headers}
nhed {news headers}
dfld {download folder}
txth {editor}
ftph {FTP helper}
nnth {news helper}
maih {Mail helper}
wwwh {Web helper}
goph {Gopher helper}
finh {Finger helper}
telh {Telnet helper}
327h {TN3270 helper}
waih {WAIS helper}
whoh {WhoIs helper}
nph {NetPhone helper} --> that is "space"nph
xnph {XNetPhone helper}
arcm {archie hosts}
ifmm {infomac mirrors}
umim {umich mirrors}
lisf {list font}
scrf {screen font}
prtf {printer font}
btc {binary file info} --> ends with "space"
nopd {no proxy domains}
uses {use socks}
sckh {socks host}
uhtp {use HTTP proxy}
htph {HTTP proxy host}
uftp {use FTP proxy}
ftht {FTP proxy host}
ftpu {FTP proxy user}
ftpp {FTP proxy password}
ftpa {FTP proxy account}
nmfi {new mail flash icon}
nmdl {new mail dialog}
nmps {new mail play sound}
nmsn {new mail sound name}
wbbc {web background color}
pasv {use passive FTP}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden