Jump to content

Klizzy

Member
  • Posts

    3
  • Joined

  • Last visited

Contact Methods

  • Twitter
    @zyr0error

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Klizzy's Achievements

Helping Hand

Helping Hand (3/5)

0

Reputation

  1. Thanks again for the awesome support and feedback! Im really impressed to see how supportive and helpful this forum is. I was taking about the official documentation from apple for applescript, because it has been archived, like seen here: https://developer.apple.com/library/archive/documentation/AppleScript/Conceptual/AppleScriptLangGuide/introduction/ASLR_intro.html But thanks to sites like macscripter.net, apple.stackexchange.com and the application UI Browser i was able to better debug & develop the script. Im glad to hear that JXA is your preferred choice in that case, because i stumbled around many threads that mentioned that JXA is limited in terms of functionality in comparison to Applescript. Probably also outdated information, which i have found. In the meantime i updated the applescript within the workflow, following your previous recommendations. Its no longer depended on the OS language, has a workflow configuration option to set a custom trigger keyword and the buttons are now identified by their IDs. I found the IDs thanks to the UI Browser application, so i had not to rewrite the whole script. I know that the short static delay times to wait for the System Settings application to appear is not the best possible solution, but it should now get the job done. I would be happy to hear if the new release is now also working on your system. The updated applescript and the new Alfred workflow release had been added to the repository: https://github.com/Klizzy/alfred-hide-my-mail
  2. Hello @vitor, thanks for the fast and valuable feedback! The suggested Alfred settings will definitely increase the user experience and reduce the options for not supported settings. The development of the Applescript was definitely the hardest part for me, because the official documentation and many example resources are pretty outdated. For debugging and development purposes i tried UI Browser, Keyboard Maestro, Accessibility selector and some UI debugging applescripts which i found online. UI Browser was pretty useful for debugging the general MacOS UI, but it seems that the iCloud+ Hide My Mail window differs in terms of structure, because UI Browser did not supported it. In my initial approach i tried to identify the UI elements by their IDs, so no language configuration has to be set anymore, but i could simply not locate them with the tools which i found online. Do you have any recommendations for debugging or developing with applescript? My use case is pretty simple, because it only clicks on a couple buttons, but without a proper IDE or debugger it feels pretty clunky. Im a software engineer myself, but its the first time i have dipped my toes into applescript, so any tips a better developer experience are appreciated. It would be great if you could provide additional information regarding the failed workflow in your tests: Did the workflow successfully generated a new mail, or did it failed already beforehand? What MacOS version and device / chip did you use? e.g Macbook Pro 2023, M2 Max
  3. Hello Alfred community, i created a new workflow, so its easier to generate new iCloud hide my mail addresses directly trough Alfred. Most of the time you get the native prompt from MacOS if you set your cursor into an input type field "mail" if its marked correctly, but it happens pretty often that the native prompt does not pop up. If you still want to use an iCloud+ hide my mail address, you have to click up to 8-10 times trough the settings to generate and copy a new one, so i automated it with an applescript file & Alfred. The source, more detailed information and an showcase how it looks like, can be found in the GitHub repository: https://github.com/Klizzy/alfred-hide-my-mail Im happy to get some feedback, because that's my first workflow, which i released to the public and it would be great to be also included in the Alfred Gallery. All my previous workflows were only for niche and for private use. Key information extracted from the readme Usage 1. Open Alfred (default shortcut: `Option + Space`). 2. Type `hide` followed by the label you want to assign to the new iCloud Hide My Mail address. 3. Press `Enter`. 4. Press `CMD + V` to paste the generated iCloud Hide My Mail address. Alfred config Workflow screenshot Thanks a lot!
×
×
  • Create New...