Questions tagged [alias]

Use this tag for questions concerning use of alias in macOS

Filter by
Sorted by
Tagged with
0
votes
0answers
20 views

SSH Aliases in Finder

I have a feeling this is a new bug in macOS, but could also be to do with some misconfiguration on my machine. As this worked until recently. I'm on macOS 10.15.7 (19H2). I use the Finder's Connect ...
0
votes
1answer
28 views

iOS & iCloud File Aliases?

Anyone have any luck using iCloud file aliases with iOS Files?? Seems the aliases created on the Mac are nothing more than nearly empty text files that are useless in iOS?
1
vote
1answer
42 views

Any way to make symlinks or aliases resolve over a network with macOS?

So I like to move my big folders from the home folder on the macOS System SSD to a hard drive and keep the SSD mainly for the system files and apps, a fairly common practice. Problem is when I want to ...
0
votes
0answers
84 views

How to use variable in alias termux?

my alias for opening Google is is like this alias g="termux-open-url https://google.com" for search url look like this http://google.com/search?q=what+I+search I wanted that if I write g what I ...
1
vote
1answer
30 views

How can I place a shortcut to a network folder in my sidebar?

My ultimate goal here is very simple: I want to place a shortcut to a specific network folder (on another machine my home network), in the sidebar of my personal machine. But I am getting some very ...
0
votes
4answers
88 views

Opening Randomized Images From Multiple Folders With Preview Application

Basically what I am trying to achieve is the following: Create an alias list of any amount of folders with the Finder's selection. Get all images from those folders with a shell script. Randomize ...
4
votes
2answers
166 views

List all aliases starting with a particular string

To improve on the steps I have to take to complete some actions on my Mac, I have created many aliases. Example: To open System Preferences, which I have to do often to manage multiple monitors, I ...
1
vote
0answers
28 views

How to copy all content of a folder excluding one filetype?

I have a folder containing 74 subfolders, that has a number of aliases strewn about within it. I'm trying to copy the entire top-level folder (and all of its contents, obviously) over to Google File ...
0
votes
0answers
76 views

Applescript alias is not updating after renaming a folder

I am still learning Applescript, but I am trying to script some automation for me. I am trying to get it to create a folder based on user input and then create a sub-folder with contents duplicated ...
0
votes
0answers
32 views

Fixing aliases for hidden files

Had to migrate to a new Mac and all of the aliases I have for hidden files are broken. When I try to navigate to the original file when I click "fix alias", I can't see the file in question in the ...
0
votes
1answer
25 views

Is there a way to configure Finder to move files to external drives by default, rather than copying them?

I was recently helping somebody move their Mac's information to Google Drive, and the best solution turned out to be using the Google Drive client for Mac. I moved the relevant files to their Google ...
0
votes
1answer
923 views

Turn Bluetooth On & Off via Terminal [duplicate]

I'm trying to find out how to turn Bluetooth On or Off by using the Terminal on macOS Catalina. I used to be able to do it with the following commands: alias bton="sudo defaults write /Library/...
0
votes
1answer
40 views

trying to run FSF emacs in character based mode ( -nw ) on Catalina

After installing Catalina on my laptop emacs vanished so I installed the latest version from FSF. Running it in a window (gui mode) works fine but I can't get it to reliably work in character mode in ...
0
votes
1answer
72 views

How to make and alias list from multiples results of a shell script?

So this is the shell script that I have in my Applescript editor which brings up all of the videos that have been added to my computer today. do shell script "mdfind 'kMDItemDateAdded >= $time....
0
votes
1answer
157 views

Applescript problems with renaming a file and getting the alias to change it's name as well

I have run into a particular problem with a larger script that I am writing. I am trying to rename all the files in a folder with a prefix of "temp_" and in doing so have the alias to that file still ...
1
vote
1answer
485 views

spotlight finds “anaconda-navigator” but `conda` has been uninstalled

CLARIFICATION. I am not trying to use conda, much less reinstall it. My question is about a behaviour that I don't understand. THE BEHAVIOUR. Some time ago I (must have) uninstalled conda, and ...
0
votes
1answer
27 views

Command works when run from alias but not when typed?

I use to type this command a lot : sshfs 10.xxx.xx.4:/Users/username/code mountpoint So one day i put it as an alias on my .bash_profile as alias sshfs='sshfs 10.xxx.xx.4:/Users/username/code ...
2
votes
2answers
184 views

MacOS zsh alias pwd is incorrect

I recently switched to MacOS and some aliases in ZSH which were working on a linux system is giving me headaches in MacOS. To be specific, pwd variable inside alias is using the same directory where ...
0
votes
0answers
24 views

How can I create an alias/shorcut to sudo/root an app permanently?

I would like to have an alias to run an app as root always. I am trying to save time and not go through the terminal commands. Thanks!
0
votes
1answer
104 views

The command for alias local='…' gets run on terminal open

I have an alias set up in my .bash_profile file: alias local='npm run start-local', and for whatever reason when I open a new terminal session it is trying to run that command npm run start-local ...
1
vote
1answer
53 views

Open folder in dock by simply clicking

Hi. In my workspace I have these frequently used folders that I keep in my dock, but I find it annoying that I have to right click and click "open" every time i want to open them. Is there some way I ...
1
vote
2answers
69 views

Recreate old aliases in bulk to reduce their file size, keeping their name and creation date

I noticed that in recent versions of macOS, aliases I create are smaller than they used to be. I have a folder full of old aliases whose sizes range from 50 KB to 6 MB, but new aliases seem to be ...
6
votes
1answer
3k views

Best practices to move macOS Mail.app storage to an external drive?

I have a system with fairly small internal storage (500GB) so I have attached a reasonably quick external storage device (256GB) that will be constantly mounted. To free up space on the internal ...
5
votes
1answer
178 views

How can I create a Finder alias in a bash script that reads arguments from the command-line?

I'd like to write a bash script that takes 2 inputs: path to actual file path of a Finder alias file (not a unix link) to be created that refers to 1. The bash script should pass these inputs to an ...
1
vote
1answer
489 views

Finder doesn't show thumbnails for Alias in OS 10.14.2

Since upgrading to 10.14.2, the Finder doesn't make thumbnails for aliases of jpeg image files, instead, it only displays the generic JPEG icon. Is this a new bug, or is there a hidden setting ...
1
vote
2answers
213 views

Bash Alias Not Found Error

I have the following command that I am trying to put into a bash alias. The command by itself works fine, but when I try to alias it, I am getting the following errors: The Command find . -maxdepth ...
2
votes
2answers
574 views

How does macOS implement symbolic link in Mojave on FAT32 filesystems?

I remember in the past, not all types of aliases (as in the macOS feature) can be created on all filesystems. This is because symbolic link (as in the type of file) is a special Unix file type, ...
1
vote
1answer
34 views

How can I create text-based aliases? (Local hyperlinks?)

I need to use deeply-buried files/folders on a hard disk at work. I can create aliases, which is helpful. An alias gives me an icon that I can double-click to open the original. But I would like to ...
3
votes
1answer
849 views

Alias in bash to Change Directory

When I am typing in a typical alias with my .bash_profile, my change directory is not working. I currently have the following: alias cdicloud="/Users/<username>/Library/Mobile Documents/com~...
1
vote
0answers
150 views

How to set PHP alias for all users

This is probably easy, but I don't know how to set it for all users. So, when I run: which php it shows /usr/local/php5-7.2.0-20171215-181251/bin/php However I've just installed PHP using brew on ...
2
votes
0answers
772 views

How can one trigger the creation of an iCloud Drive alias?

I am not referring to traditional symlinks in general, but specifically to the "alias" files used within iCloud Drive. I am also not referring to "stub" files that indicate that a file has not yet ...
1
vote
1answer
215 views

Can't navigate to folder alias on server in the save window

After upgrading to macOS High Sierra, I can't save a file to the alias of a folder in the open/save dialog box on a server. When browsing to the folder I want to save the file to, the folder aliases ...
0
votes
1answer
160 views

random “broken” alias from Keynote presentation

So for over a few months now ive been having issue with the Keynote application creating these 'broken alias' files on my MacBook Air randomly from time to time(10.13.5 High Sierra; APFS Volume). Ive ...
5
votes
1answer
287 views

AppleScript: alias reference is not changing after renaming a folder

I'm new to AppleScript and after doing: set folder_name to "New_Folder" tell application "Finder" to make new folder at desktop set my_folder to result as alias tell application "Finder" to set the ...
4
votes
2answers
1k views

How to create an Alias with a Variable inside?

I want to create an Alias for my Terminal to quick-search inside files. In Ubuntu is was: alias gre="egrep -rnw ". I used it like that $ gre 'my search string'. Now I want this for my local MacBook-...
0
votes
1answer
358 views

“can't get alias”?

I have the following script that I want to use to change a single string in a Pages file to another, and it bombs with can't get alias. How do I fix this? tell application "Pages" set MYTESTFILE ...
3
votes
3answers
265 views

Alias - 'Show Original' in new tab

Update: After the two answers so far I have moved the goalposts slightly. I need multiple selections & tabs - the existing answers; one has multi-select capability, the other gives me tabs, which ...
5
votes
2answers
3k views

symbolic link vs. alias

Disclaimer: I work with programmers, but am not one myself and have no real / formal knowledge of how an OS works; please be patient if the following makes plain my ignorance :) I am trying to ...
1
vote
2answers
464 views

How do I make aliases hidden in macOS?

When I enter in Terminal: chflags hidden location_of_alias it hides the actual original folder the alias points to but it does not actually hide the alias itself. How do I do it?
4
votes
2answers
14k views

Creating aliases for iTerm 2 that work during ssh

I use numerous aliases set at a given UNIX environment. For example my current fish shell under OSX have these below gm -> git merge dk -> docker kill and so on. Now the challenge is I use iTerm 2 ...
2
votes
1answer
1k views

Is it possible to edit a macOS alias with vim?

I like to use macOS's alias feature to not have to make redundant files. These aliases work great with Chrome and TextEdit. When I open them with vim, however, I get a giant messy file (presumably the ...
1
vote
1answer
527 views

Remotely accessing Time Machine folder structure using Back To My Mac

I'm in Japan, and I have a Time Machine backup on a disk that's hooked up to my AirPort Extreme in New York. I can connect to the disk using Back To My Mac. The disk is quite old, and I have no backup ...
1
vote
1answer
563 views

Search for alias not finding files

I am running Yosemite on a Mac Pro Mid 2010. When I moved to an SSD for my boot drive, I started using Symbolic Linking so some apps would store their data on a regular HD. So, for example, I go to ...
2
votes
0answers
55 views

How to fix the command line shortcut for the Brackets editor?

I've installed Brackets, but if I try to type brackets at the command line I get -bash: brackets.sh: command not found I've found that the shell script is located in /Applications/Brackets.app/...
0
votes
0answers
565 views

Make Desktop the alias folder macOS High Sierra

How can I make the Desktop folder, the alias folder for a different folder too? In other words: In Mail app, if you double click on an image someone emailed to you, it downloads to: /Users/name/...
1
vote
1answer
312 views

how to create environment variables recognized by OSX gui

I use a lot of aliases in my ~/.bash_profile.. just to make my navigation easier and so on. I was wondering if I can make environment variables recognizable by OSX at a gui level.. for example if I ...
1
vote
1answer
681 views

List of Metadata Attribute Aliases That I can Search for in Spotlight

If I open up Spotlight, I can use metadata attributes such as kind:pdf and date:today to refine my search. I'm curious if there's a way to list all of these attributes that I can use with this ...
1
vote
1answer
51 views

Moving mail to folder removes it from mail account

I have two aliases set up in my Gmail account and on my Mac Mail.app I set up a rule for each alias that if an email is "to 'Alias A'", move it to folder "Alias A Folder" - respectively for "Alias B". ...
0
votes
1answer
334 views

How to organize/sort alias mails?

I have one mail account with 3 aliases. I am wondering if there is any way to separate them from one mailbox to 4 individual mailboxes? Is there a "hidden feature" I do not know about that lets you ...
2
votes
1answer
428 views

Copy the original when dragging a alias

I have i.e. a folder full with alias from everywhere on my system. Now I want to give exactly this files as the originals to an extern hard drive or what else. Is there a way to simply take these ...