Re: Adding a bookmark to IE
Re: Adding a bookmark to IE
- Subject: Re: Adding a bookmark to IE
- From: Frank Watzl <email@hidden>
- Date: Fri, 2 Nov 2001 12:31:36 +0100
The homepage URL seems trickier - - I haven't found anything yet that alters
that URL via AppleScript.
Any advice is greatly appreciated.
Hi,
on my machine (MacOS 9.2, IE 5.0) the user defined homepage is not
stored in Explorer's own preferences, but in the preferences file of
the Internet Control Panel, which is
--(((path to preferences folder) as string) & "internet preferences") as alias
or
set prefFolder to path to preferences
tell application "Finder" --one line
set iPrefFile to first file of prefFolder whose (creator type
is "ICAp" and file type is "ICAp")--one line
end tell
which may be more reliable on international systems, although the
String "internet preferences" doesn't seem to be localized.
The Homepage URL is stored in ICRQ resource 6286. Which probably
isn't really good news for you, because you can't modify resources
with plain vanilla AppleScript. While there are scripting additions
providing resource modification commands, you can't expect them to be
installed on your user's machines. I once heard about a way to embed
Scripting additions into a script application, but I don't know the
details of this technique. If you manage to go that way, you might be
able to produce a stand alone script modifying the preferences file's
resource.
Sorry I can't be of more help.
Frank Watzl
--
Frank Watzl
Technische Kommunikation
Dahlmannstrasse 18
60385 Frankfurt am Main