add AppleScript commands for accessing the current web page shown in Safari
This commit is contained in:
parent
4cfb86eb10
commit
a25fcb9e6e
@ -158,6 +158,13 @@ defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebK
|
|||||||
defaults write NSGlobalDomain WebKitDeveloperExtras -bool true
|
defaults write NSGlobalDomain WebKitDeveloperExtras -bool true
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Get the current Web Page as Source, Text or URL
|
||||||
|
```bash
|
||||||
|
osascript -e 'tell application "Safari" to get source of current tab of front window'
|
||||||
|
osascript -e 'tell application "Safari" to get text of current tab of front window'
|
||||||
|
osascript -e 'tell application "Safari" to get URL of current tab of front window'
|
||||||
|
```
|
||||||
|
|
||||||
### Sketch
|
### Sketch
|
||||||
|
|
||||||
#### Export Compact SVGs
|
#### Export Compact SVGs
|
||||||
|
Loading…
Reference in New Issue
Block a user