Re: Adding a bookmark to IE for OS X
Re: Adding a bookmark to IE for OS X
- Subject: Re: Adding a bookmark to IE for OS X
- From: email@hidden
- Date: Sat, 3 Nov 2001 15:17:22 EST
What would be the technique for this in OS X? It's IE homepage URL is stored
in a different place, from what I can gather.
In a message dated 11/3/01 11:28:27 AM, email@hidden writes:
<< >> 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.
>
It's "Applet Binder", by AWOL Software Productions. It binds scripting
additions resources into the applet/droplet. Copy "osax" rsrc (of scripting
addition) into your app, and bind it.
Also, "load embedded scripting additions" command, from "Jon's Commands",
can do it, but you need install "Jon's Commands" before running.
JJ
_______________________________________________
applescript-users mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/applescript-users
----------------------- Headers --------------------------------
Return-Path: <email@hidden>