Skip to content

Commit 2c1ff8a

Browse files
authored
adding force refresh script (raycast#532)
* adding force refresh script * fixing case for consistency
1 parent f2071b5 commit 2c1ff8a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/osascript
2+
3+
# Required parameters:
4+
# @raycast.schemaVersion 1
5+
# @raycast.title Clear Cache and Refresh Page
6+
# @raycast.mode silent
7+
#
8+
# Optional parameters:
9+
# @raycast.packageName Safari
10+
# @raycast.icon images/safari.png
11+
#
12+
# Documentation:
13+
# @raycast.description This script clears cache and reloads the page of the frontmost Safari window.
14+
# @raycast.author Aaron Miller
15+
# @raycast.authorURL https://github.com/aaronhmiller
16+
17+
tell application "Safari" to activate
18+
tell application "System Events" to keystroke "r" using {option down, command down} --warning: undocumented can change w/o notice

0 commit comments

Comments
 (0)