Created
July 29, 2009 18:09
-
-
Save rubyist/158304 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on opening folder this_folder | |
tell application "Safari" | |
activate | |
tell application "System Events" | |
tell process "Safari" | |
click menu item "New Tab" of menu "File" of menu bar 1 | |
end tell | |
end tell | |
set the URL of document 1 to "file:///Users/foo/bar.html" | |
end tell | |
tell application "Finder" to close Finder window "foo" | |
end opening folder |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment