Jump to content

csaborio

Member
  • Posts

    25
  • Joined

  • Last visited

Posts posted by csaborio

  1. 1 hour ago, vitor said:

    The correct location for the link would be /opt/homebrew/bin/php.¹ Looks like Homebrew didn’t do it, but you can fix it with brew link php@7.4. That said, if you’re adding PHP for your own personal use (i.e. if you don’t need version 7.4 specifically for a Workflow), consider brew install php.


    ¹ For Apple Silicon Macs. For people on Intel Macs, the path is /usr/local/bin/php.


    You sir, are my hero, thank you so much for this, all fixed! 

  2. I have PHP 7.4 installed with homebrew:
     

    > /opt/homebrew/opt/php@7.4/bin/php --version
    PHP 7.4.30 (cli) (built: Jun  9 2022 09:20:03) ( NTS )
    Copyright (c) The PHP Group
    Zend Engine v3.4.0, Copyright (c) Zend Technologies
        with Zend OPcache v7.4.30, Copyright (c), by Zend Technologies

     

    If my scripts try to use PHP, the path to this is not found (please see attached).

    I tried to be clever and run:
     

    > sudo ln -s /opt/homebrew/opt/php@7.4/bin/php /usr/bin/php
    Password:
    ln: /usr/bin/php: Operation not permitted

     

    So the question - how do I tell Alfred to use PHP that was installed via Homebrew?

    Thanks!

    CleanShot 2022-09-06 at 08.48.21.jpg

  3. Hello @Vero, that did the trick and fixed a couple things that were not working properly as well.


    <rant data-destination="apple">

    I am not sure how I would've addressed security with apps being Apple, but this whole granting permissions by accessing "System Prefs" unlocking and finding the app is as inefficient as it gets. A yes/no dialog should've suffice, they follow that model on their bloody phones.

    </rant>

  4. I was ecstatic when I found a workflow to add the currently playing track any playlist of my choice. So fast and efficient!

     

    But, alas, the workflows out there do not seem to work with Apple Music. I have looked at AppleScript API for iTunes (god I hate AS) and the small proof of concepts I have made have failed miserably.

     

    Has anybody gotten close to doing this? I am so sick of adding songs to playlists like a mere mortal!  :D

     

    Thanks!

     

    -Christian

  5. Hi and good day,

     
    Is there a way to open a webpage with automatically entering my login (maybe with 1Password)?
     
    /

    with best regards,

    Omar K N

    Stockholm, Sweden

     

     

    Out of curiosity, why are you not using 1Password's built-in function for this? I have a key combo assigned to it, I type in the website and I hit enter, don't have to touch the mouse:

     

    https://www.evernote.com/l/ABAw_C74vWNFLLqLNahpxWnX2PRt_wxyYqIB/image.png

     

    image.png

    image.png

    image.png

  6. I was looking for a way to switch to an airplay device using Alfred Remote.  I found this script and modified it, then created two scripts within Alfred Remote and now I can switch between my airplay devices without having to use Remote.app at all!  

    on alfred_script()
    tell application "iTunes"
    	set apNames to (get name of AirPlay devices)
    	set apDevices to (get AirPlay devices)
    	set rez to "extender" --replace extender with your Airplay device name
    	set apPlays to {}
    	repeat with i from 1 to length of apNames
    		if item i of apNames is in rez then set end of apPlays to item i of apDevices
    	end repeat
    	set current AirPlay devices to apPlays
    end tell
    end alfred_script
    
×
×
  • Create New...