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


Click here to return to the 'Saving and restoring tabs in Safari' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Saving and restoring tabs in Safari
Authored by: gctuser on Sep 17, '03 07:59:45AM
to make this work on non-englisch system languages modify the "System Events"-calls:

on new_tab()
  tell application "Safari" to activate
  tell application "System Events"
    tell process "Safari"
      click menu item 2 of menu 3 of menu bar 1
    end tell
  end tell
end new_tab

on new_window()
  tell application "Safari" to activate
  tell application "System Events"
    tell process "Safari"
      click menu item 1 of menu 3 of menu bar 1
    end tell
  end tell
end new_window


[ Reply to This | # ]