home.social

#osascript — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #osascript, aggregated by home.social.

  1. Today I learned how to create a Finder alias using AppleScript and the command line:

    ```bash
    $ osascript -e 'tell application "Finder" to make alias file to posix file "/opt/homebrew/opt/emacs-plus@29/Emacs.app" at posix file "/Applications" with properties {name:"Emacs.app"}'

    alias file Emacs.app of folder Applications of startup disk
    ```

    This is for the particular case of creating an Emacs.app named alias at the Applications folder for the Homebrew version of the `emacs-plus` package, but changing the paths above will allow you to create arbitrary Finder aliases from the command line.

    #TIL #TodayILearned #AppleScript #Finder #alias #CLI #CommandLineInterface #osascript

  2. Today I learned how to create a Finder alias using AppleScript and the command line:

    ```bash
    $ osascript -e 'tell application "Finder" to make alias file to posix file "/opt/homebrew/opt/emacs-plus@29/Emacs.app" at posix file "/Applications" with properties {name:"Emacs.app"}'

    alias file Emacs.app of folder Applications of startup disk
    ```

    This is for the particular case of creating an Emacs.app named alias at the Applications folder for the Homebrew version of the `emacs-plus` package, but changing the paths above will allow you to create arbitrary Finder aliases from the command line.

    #TIL #TodayILearned #AppleScript #Finder #alias #CLI #CommandLineInterface #osascript

  3. Today I learned how to create a Finder alias using AppleScript and the command line:

    ```bash
    $ osascript -e 'tell application "Finder" to make alias file to posix file "/opt/homebrew/opt/emacs-plus@29/Emacs.app" at posix file "/Applications" with properties {name:"Emacs.app"}'

    alias file Emacs.app of folder Applications of startup disk
    ```

    This is for the particular case of creating an Emacs.app named alias at the Applications folder for the Homebrew version of the `emacs-plus` package, but changing the paths above will allow you to create arbitrary Finder aliases from the command line.

    #TIL #TodayILearned #AppleScript #Finder #alias #CLI #CommandLineInterface #osascript

  4. Today I learned how to create a Finder alias using AppleScript and the command line:

    ```bash
    $ osascript -e 'tell application "Finder" to make alias file to posix file "/opt/homebrew/opt/emacs-plus@29/Emacs.app" at posix file "/Applications" with properties {name:"Emacs.app"}'

    alias file Emacs.app of folder Applications of startup disk
    ```

    This is for the particular case of creating an Emacs.app named alias at the Applications folder for the Homebrew version of the `emacs-plus` package, but changing the paths above will allow you to create arbitrary Finder aliases from the command line.

    #TIL #TodayILearned #AppleScript #Finder #alias #CLI #CommandLineInterface #osascript

  5. Today I learned how to create a Finder alias using AppleScript and the command line:

    ```bash
    $ osascript -e 'tell application "Finder" to make alias file to posix file "/opt/homebrew/opt/emacs-plus@29/Emacs.app" at posix file "/Applications" with properties {name:"Emacs.app"}'

    alias file Emacs.app of folder Applications of startup disk
    ```

    This is for the particular case of creating an Emacs.app named alias at the Applications folder for the Homebrew version of the `emacs-plus` package, but changing the paths above will allow you to create arbitrary Finder aliases from the command line.

    #TIL #TodayILearned #AppleScript #Finder #alias #CLI #CommandLineInterface #osascript