Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
anttiharju committed Sep 5, 2024
1 parent ddf8e02 commit 7e60b55
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
!.vscode/extensions.json
cache/*
!cache/.gitkeep
*.DS_Store
15 changes: 15 additions & 0 deletions bin/echo-urls
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env dash

SCRIPT_DIR=$(dirname "$(realpath "$0")")

# Run the AppleScript and capture the output
urls=$(osascript "$SCRIPT_DIR/../scripts/get_safari_urls.scpt")

# Convert the output to a list
IFS=', '

# Print the URLs (optional)
for url in $urls; do
echo
echo "$url"
done
Binary file added scripts/get_safari_urls.scpt
Binary file not shown.

0 comments on commit 7e60b55

Please sign in to comment.