Jan 19, '07 07:30:00AM • Contributed by: graphicgeek80
I use Safari and browse with tabs. I like having everything in one window. Sometimes however, I come across a page that I am already viewing that I want to be in a separate window. So I made an Automator app to take care of it for me.
Its a simple three step app. Start with the Get Current Webpage from Safari action in the Safari library, then add the Display Webpages (also in the Safari library) action (this will open your URL in a new window), and finally, add a Run AppleScript action with this script:
on run {input, parameters}
activate application "Safari"
tell application "System Events"
tell process "Safari"
-- GUI Scripting statements:
keystroke "m" using {command down}
end tell
end tell
return input
end run
Save this as an application somewhere on your hard drive. It takes about three seconds to run the app on my G5, which I think is worth it for not cycling through a tab that I know isn't related to my current surfing activities. I also invoke the app through a trigger in Quicksilver, so that it is readily available.
The Applescript portion of the Automator app was modified from a previous hint submitted by meanbone, since I am not that great with AppleScript.
