Jump to content

Acidham

Member
  • Posts

    429
  • Joined

  • Last visited

  • Days Won

    19

Acidham last won the day on June 8 2023

Acidham had the most liked content!

2 Followers

Profile Information

  • Location
    Deep South of Germany

Recent Profile Visitors

4,706 profile views

Acidham's Achievements

Advanced Member

Advanced Member (5/5)

100

Reputation

  1. @jesused makes sense! I changed it and released a new version: https://github.com/Acidham/alfred-image-shrinker/releases/tag/v1.4.3
  2. Not easily via config UI but you can change the `chrom_history.py`. At the beginning of the file, the paths are configured.
  3. I don't use bookmarks at all. Instead, I built this workflow that relies heavily on my browser history. For me, the URLs I visit frequently become my 'bookmarks' in a way. Since Arc imports bookmarks from other browsers but doesn't support them natively, it hasn't been an issue for me. I navigate mostly through my history, which effectively serves as a dynamic list of my most visited and important sites. Curious to hear how others are adapting to this or if anyone else has ditched traditional bookmarks for a more fluid approach like history search.
  4. @osthing I love your "Why?" illustration! So sweet 😀 I can tell you why: I basically forgot to add airpodpro2.png to the workflow. Thank you for reporting I released a new version: https://github.com/Acidham/alfred-airpod-connector/releases/tag/v1.3.10
  5. yep model number and from what I see the model is supported, but it seems the icon file will not be picked up. When you open the FINDER (right-click on the workflow) you should see the .png files. Please check
  6. I assume this is the Firmware Version but I need the AirPod version or better Model Number which you can find in settings when connected.
  7. @osthing what AirPod version are you using?
  8. Hi @Faris Najem I changed handling of duti app dependency. Please try and let me know: https://github.com/Acidham/alfred-default-app/releases/tag/v1.4.3
  9. @Stephen_C I just shared via direct message a fixed code snipped, but I am uncertain if the message was ever sent. Therefore, here again. The new code should fix most of the issues when reading the title of a webpage. Just replace the code in WF with the code below. import urllib.request import re import os import http.cookiejar def fetch_webpage_title(url): try: cj = http.cookiejar.CookieJar() opener = urllib.request.build_opener(urllib.request.HTTPCookieProcessor(cj)) headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.3'} request = urllib.request.Request(url, headers=headers) response = opener.open(request) # response = urllib.request.urlopen(url) html = response.read().decode('utf-8',errors='ignore') title_match = re.search('<title>(.*?)</title>', html, re.IGNORECASE) # Extract the title if found if title_match: return title_match.group(1).strip() else: return "" except Exception as e: return "" url = os.getenv('theURL') print(fetch_webpage_title(url))
  10. We could improve over time. I did this quick and dirty for the time being. In case no error were thrown, I suggest putting it into the next release and improving it over the time.
  11. @Stephen_C uups sorry forgot to return an empty string instead of returning the error. And shame on me, I did not test it enough. i changed the line return f"An error occurred: {e}" to return "" import urllib.request import re import os def fetch_webpage_title(url): try: # Fetch the webpage content response = urllib.request.urlopen(url) html = response.read().decode('utf-8',errors='ignore') # Use regex to find the title tag title_match = re.search('<title>(.*?)</title>', html, re.IGNORECASE) # Extract the title if found if title_match: return title_match.group(1).strip() else: return "" except Exception as e: return "" url = os.getenv('theURL') print(fetch_webpage_title(url))
  12. @Stephen_C In order to extract the title of a webpage as a prefill for the prompt, I added the following Python script as a WF step. It would be great to add it to your workflow… Python3 script: import urllib.request import re import os def fetch_webpage_title(url): try: # Fetch the webpage content response = urllib.request.urlopen(url) html = response.read().decode('utf-8',errors='ignore') # Use regex to find the title tag title_match = re.search('<title>(.*?)</title>', html, re.IGNORECASE) # Extract the title if found if title_match: return title_match.group(1).strip() else: return "" except Exception as e: return f"An error occurred: {e}" url = os.getenv('theURL') print(fetch_webpage_title(url))
  13. Here's a rundown of what each option in the rsync command does: -r: This stands for "recursive," which means that rsync will copy all subdirectories and their contents, not just the files in the top-level directory. -t: This option preserves the modification times of files. -v: "Verbose." This makes rsync provide more detailed output about what it's doing. -u: This tells rsync to only copy files that have a more recent modification time on the source than on the target. In other words, if the target file is newer or the same age as the source file, it won't be overwritten. -c: Instead of just looking at file modification times, this option makes rsync check the contents of files to determine whether they need to be copied. It uses a checksum for this. --delete-after: This option means that after rsync has copied all the necessary files, it will delete any files in the target directory that aren't in the source directory. It ensures that the target becomes a mirror image of the source. --ignore-errors: This tells rsync to continue transferring the rest of the files even if some files give errors. --stats: This option makes rsync provide a summary of how much data was transferred and other related stats.
  14. > Now I want to change destination in rsync for incremental backup but don't want to add again and do full backup you can change in config json but you can also delete and add again. Rsync does not perform a full backup it just sync, means it starts where you ended before you deleted the entry.
×
×
  • Create New...