LoginSignup
16
13

More than 5 years have passed since last update.

Chromeで開いているURLをFirefoxとSafariで開くAppleScript

Last updated at Posted at 2013-11-18

動作環境は OS X 10.8.5 で確認。

firefoxで開く.scpt
tell application "Google Chrome"
    set vURL to get URL of active tab of first window
end tell

tell application "Firefox"
    open location vURL
    activate
end tell
safariで開く.scpt
tell application "Google Chrome"
    set vURL to get URL of active tab of first window
end tell

tell application "Safari"
    open location vURL
    activate
end tell

これらを AppleScript エディタ で開いて保存。

AppleScript エディタ の 環境設定 > 一般 に「メニューバーにスクリプトを表示」チェックボックスがあるので、そこにチェックすると、各アプリケーションごとに、メニューにAppleScriptのアイコンの形をしたメニューが現れる。

そこから スクリプトフォルダを開く > Chrome スクリプトフォルダを開く を選択すると、Chrome専用のスクリプトフォルダが開くので、そこに上記スクリプトを入れておく。

これでChromeで開いているURLをいつでもFirefoxでそのまま開けるようになる。
かんたん便利。

16
13
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
16
13