Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Muti-tab home page version 2.0' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Muti-tab home page version 2.0
Authored by: skatz13 on Apr 14, '03 07:06:24PM

Sorry, the script posted before was assuming Safari was already
open. When ran with Safari closed it would open up two
windows. One with the homepage url from the preferences the
other with all the site programmed.

Here is the updated one


tell application "Safari"
activate
set the URL of document 1 to "http://
www.XXXXXXX.com"
my new_tab()
set the URL of document 1 to "http://www.XXXXXX.com"
end tell
on new_tab()
tell application "Safari" to activate
tell application "System Events"
tell process "Safari"
«event prcsclic» «class menI» "New Tab" of
«class menE» "File" of «class mbar» 1
end tell
end tell
end new_tab



Also this requires that you have installed the UI Scripting Beta
which can be downloaded from
http://www.apple.com/applescript/GUI/

Plus you need to be sure that the "Enable access for
assistive devices" option is checked in the Universal Access
System Pref Pane.


Sorry again.



[ Reply to This | # ]