从命令行获取Safari的当前位置?


Answers:


3

我在以下位置创建了以下shell脚本~/bin/currenturl

osascript -e 'tell application "Safari" to return URL of front document' | tr -d '\n'

chmod +x当然了。)

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.