4 ms·
I go the other way, sending pages from Safari to Chrome when I need Flash content, using a TextExpander snippet. It's not a perfect solution for you, but it mig
by jen729w 10y ago
I go the other way, sending pages from Safari to Chrome when I need Flash content, using a TextExpander snippet. It's not a perfect solution for you, but it might help.
Here's the code, which I have tied to "stc " (send to Chrome). [Ha! In typing the snippet shortcut, of course, I sent this very page to Chrome. :-)]
property theURL : ""
tell application "Safari"
set theURL to URL of current tab of window 1
end tell
if appIsRunning("Google Chrome") then
tell application "Google Chrome"
make new window
set URL of active tab of window 0 to theURL
activate
end tell
else
tell application "Google Chrome"
do shell script "open -a \"Google Chrome\""
set URL of active tab of window 0 to theURL
activate
end tell
end if
on appIsRunning(appName)
tell application "System Events" to (name of processes) contains appName
end appIsRunning