Changing Preferences
Changing Preferences
- Subject: Changing Preferences
- From: Tor Hildrum <email@hidden>
- Date: Wed, 17 Aug 2005 18:34:56 +0200
Hi,
I need to change the default homepage in Safari, and add Safari as a
login-item for the user running the script.
What I got so far:
on run
tell application "System Events" to tell process "Safari"
tell application "Safari" to activate
set the URL of document 1 to "http://our.homepage.com"
click menu item "Preferences…" of menu 1 of menu bar item "Safari"
of menu bar 1
click button "General" of tool bar 1 of window 1
click button "Set to Current Page"
end tell
end run
The problem is that it doesn't set the homepage, and I can't figure
out how to "click the "Set to Current Page" button" either.
Also, I'm not sure how to handle the login-items either.
I could probably do:
open System Preferences
open Accounts
open Login Items
But, from there I'm not sure. Maybe there is an easier way to handle this?
regards
Tor
_______________________________________________
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