Protect what matters – even after you're gone. Make a plan for your digital legacy today.
Forum Discussion
spinoza
3 years agoDedicated Contributor
How to convert-all-http-links-to-https?
Reopening this old thread, because the feature has not been implemented.
https://1password.community/discussion/92530/convert-all-http-links-to-https
Has anyone here tried writing an AppleScrip...
spinoza
3 years agoDedicated Contributor
Here is what ChatGPT 4 suggests:
Creating an AppleScript or a Shortcut to convert all HTTP links to HTTPS in the 1Password macOS desktop app is a complex task that involves interacting with the 1Password app's interface or its data. Unfortunately, 1Password doesn't provide a native AppleScript API, and directly manipulating its data could be risky and potentially compromise the security of your stored information.
However, here are some alternative approaches you could consider:
Certainly, let's delve into each option in more detail:
1. Manual Method
Steps:
- Backup Data: Before making any changes, backup your 1Password data.
- Export Data: Open 1Password, go to
File > Export > All Items...and choose CSV format. - Edit CSV: Open the exported CSV file in a text editor like Sublime Text or a spreadsheet program like Microsoft Excel.
- Find and Replace: Use the find and replace function to replace all instances of
http://withhttps://. - Import Data: Go back to 1Password and import the modified CSV via
File > Import.
Risks:
- You might accidentally modify other data.
- Importing the data incorrectly could result in data loss or corruption.
Citation:
2. Using 1Password CLI
Steps:
- Install CLI: Download and install the 1Password CLI.
- Authenticate: Authenticate your 1Password account with the CLI.
- Fetch and Update Items: Use the CLI commands to fetch, modify, and update items.
Sample Script (Pseudo-code):
```bash
Authenticate
op signin my.1password.com
Fetch all Login items
items=$(op list items --categories Login)
Loop through each item
for item in $items; do
# Get item details
details=$(op get item $item)
# Replace http with https in details
# Update the item
op edit item $item $modified_details
done
```
Risks:
- A mistake in the script could result in data loss or corruption.
Citation:
3. Using Keyboard Maestro
Steps:
- Install Keyboard Maestro: If you haven't already, install Keyboard Maestro.
- Create Macro: Create a new macro and add actions to automate the UI of 1Password.
- Test: Test the macro on a small set of data first.
Risks:
- Automating UI interactions can be error-prone and might not work if the UI changes.
Citation:
Disclaimer: These methods come with risks, especially when dealing with sensitive data like passwords. Always backup your data and test thoroughly before running any script or automation.