Chrome でアクティブなドキュメントを開く textwrangler の Applescript を作成しようとしています。現時点でのスクリプトは次のようになります。
tell application "TextWrangler" to set theFile to file of document 1
tell application "Finder" to open theFile using (path to application "Google Chrome")
絶対パス「Applications/MAMP/www/index.php」を持つファイルで作業しているとしましょう。スクリプトは、ブラウザーでそのファイルを「file:// localhost/Applications/MAMP/www/index.php」として開き、php コードを表示します。
これの代わりに、'file:// localhost/Applications/MAMP/' を実際のサイトを示す 'http:// localhost/' に置き換えるスクリプトが必要です。
私はオンラインで見つけたものをたくさん試しましたが、これを達成するにはApplescriptの経験が少なすぎます.