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


Click here to return to the 'Integration of Tips' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Integration of Tips
Authored by: Leontes on May 09, '03 03:24:51PM

I was fiddling around with applescript and came up with this way
of doing the same sort of thing:

set the URL_list to {"http://us.imdb.com/StudioBrief/", "http://
slashdot.org/", "http://apple.slashdot.org/", "http://
www.gallup.com/poll/", "http://news.com.com/", "http://
www.snopes.com/info/whatsnew.asp", "http://
www.macsurfer.com/", "http://www.macosxhints.com/", "http:/
/www.versiontracker.com/macosx/", "http://www.spymac.com/
", "http://www.memepool.com/", "http://news.google.com/"}

tell application "Finder"
repeat with i from 1 to number of items in URL_list
set this_URL to item i of URL_list
open location this_URL
end repeat
end tell

This applescript will open a list of URL's in a single window in
Safari under tabs. Very useful for checking out the sites you
read every day. To edit, drag the strip into the Script Editor. To
change the URL's just boot up applescript editor and change the
information in the quotation marks. You can add or take
away, the number doesn't matter.

To make this work:

(under internet options under system preferences) Make Safari
your default browser... (under general preferences in Safari)
Block pop up windows, select "in the current window" for open
links from applications [this will only alter the behavior of
safari]. Enable Tabbed browsing under tabs.

This is my first applescript. It's kinda fun.



[ # ]
Integration of Tips
Authored by: zarkon55 on Nov 16, '03 12:40:16PM

All of these tab tricks do not work in latest Panther 10.3.1

Try this instead:

tell application "Safari"
activate

my new_tab()
set the URL of document 1 to "http://news.google.com/news/en/us/technology.html"
my new_tab()
set the URL of document 1 to "http://news.com.com/"
my new_tab()
set the URL of document 1 to "http://maccentral.macworld.com/"
my new_tab()
set the URL of document 1 to "http://www.versiontracker.com/macosx/"

end tell

on new_tab()

delay 1
tell application "System Events"
tell process "Safari"
keystroke "t" using command down
end tell
end tell

end new_tab



[ # ]