Skip to content

Commit

Permalink
Script is no longer dependend on the OS language, fixed starting issu…
Browse files Browse the repository at this point in the history
…es and updated readme
  • Loading branch information
Klizzy committed Jun 15, 2024
1 parent c4d84db commit 292e81d
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 581 deletions.
57 changes: 0 additions & 57 deletions HideMyMail-DE.scpt

This file was deleted.

17 changes: 9 additions & 8 deletions HideMyMail.scpt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
on run argv
tell application "System Settings"
activate
delay 0.5
reveal pane id "com.apple.systempreferences.AppleIDSettings*AppleIDSettings"
end tell
tell application "System Events"
Expand Down Expand Up @@ -30,22 +31,22 @@ on run argv
set value of text field 1 of group 4 to argv
end tell
tell group 1 to tell group 2 to tell group 1
repeat until UI element "Continue" of group 2 exists
repeat until UI element 1 of group 2 exists
delay 0
end repeat
click UI element "Fortfahren" of group 2
repeat until UI element "Copy address" of group 1 exists
click UI element 1 of group 2
repeat until UI element 1 of group 1 exists
delay 0
end repeat
click UI element "Adresse kopieren" of group 1
repeat until UI element "Done" of group 2 exists
click UI element 1 of group 1
repeat until UI element 1 of group 2 exists
delay 0
end repeat
click UI element "Fertig" of group 2
repeat until UI element "Done" of group 1 exists
click UI element 1 of group 2
repeat until UI element 1 of group 1 exists
delay 0
end repeat
click UI element "Done" of group 1
click UI element 1 of group 1
end tell
end tell
end tell
Expand Down
13 changes: 3 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<img src=".assets/hide-my-mail.png" alt="Hide My Mail Logo" width="200">
</p>

### 🎩 Create a new iCloud Hide My Mail address with a specified label via Alfred and have it copied to your clipboard.
### 🎩 Create a new iCloud Hide My Mail address automatically with an specified label via Alfred and have it copied to your clipboard.

## Showcase
> The whole shown process is completed within a couple seconds.
Expand All @@ -16,7 +16,6 @@
## Installation
1. Download the latest `.alfredworkflow` file from the [releases page](https://github.com/Klizzy/alfred-hide-my-mail/releases).
2. Double-click the downloaded file to import it into Alfred 5.
3. Configure the workflow, if your MacOS system language is not set to English.

## Usage
1. Open Alfred (default shortcut: `Option + Space`).
Expand All @@ -31,17 +30,11 @@ The workflow will open the MacOS System Settings, navigate to the appropriate se
1. Alfred 5.1 or later
2. Active [iCloud+](https://support.apple.com/guide/icloud/mm9d9012c9e8/icloud) subscription
3. MacOS 14.1 or later
4. Your MacOS system language is supported by the workflow

## Configuration

The workflow currently supports the following languages and config values:
- English
- `EN`
- German
- `DE`

The default setting is `EN`. To change the language, open the Alfred Preferences, navigate to the `Workflows` tab, select the `Hide My Mail` workflow, and click on the `Configure Workflow` button. Here you can change the language setting to `DE` and save the configuration.
You can change the keyword to trigger the workflow by opening the Alfred Preferences, navigating to the `Workflows` tab, selecting the `Hide My Mail` workflow, and clicking on the `Configure Workflow` button. Here you can change the keyword to your desired value.
- The default keyword is `hide`.

## Why?

Expand Down
Loading

0 comments on commit 292e81d

Please sign in to comment.