Sample Header Ad - 728x90

Ask Different (Apple)

Q&A for power users of Apple hardware and software

Latest Questions

1 votes
3 answers
540 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 are greyed out, this problem doesn't occur on previous versions of macOS or when the folder alias isn...
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 are greyed out, this problem doesn't occur on previous versions of macOS or when the folder alias isn't located on a server. How do I resolve this issue?
Cedric (211 rep)
Aug 25, 2018, 12:24 PM • Last activity: May 18, 2025, 04:05 PM
1 votes
3 answers
2703 views
How to make Rsync copy alias files?
System specs: 2011 iMac, OS X Mountain Lion 10.8.4 I have come to understand that Rsync does not handle Mac Alises properly, and have now discovered that hundreds of aliases I've previously copied to my portable drive, are dead and useless because of this. Is there a way to force Rsync to handle ali...
System specs: 2011 iMac, OS X Mountain Lion 10.8.4 I have come to understand that Rsync does not handle Mac Alises properly, and have now discovered that hundreds of aliases I've previously copied to my portable drive, are dead and useless because of this. Is there a way to force Rsync to handle aliases? If the answer is a definitive "no", then how can I recursively batch convert all aliases in a directory to symlinks so that they will be handled by Rsync? I've found references to an Applescript that would apparently do this, but the site hosting the script is long dead & gone. As a last resort, does anyone know of something other than Rsync that would allow for incremental backups and also handle Aliases?
JVC (2951 rep)
Sep 2, 2013, 02:50 AM • Last activity: May 10, 2025, 12:31 PM
5 votes
5 answers
5500 views
How do I replace an alias by the original file it is linking to?
I have a folder containing several alias for pdf's that each have > 200 mb. Each pdf is in a different location on my drive. I need to compress all of those files. What is the fastest way to do it? There is always the slow way of going to each of the alias, right clicking it, copying the original to...
I have a folder containing several alias for pdf's that each have > 200 mb. Each pdf is in a different location on my drive. I need to compress all of those files. What is the fastest way to do it? There is always the slow way of going to each of the alias, right clicking it, copying the original to a predefined folder, repeat this procedure for every alias and finally compress the folder with all the original pdfs Evidently this will take forever! Is there a fastest way? For example using Terminal. Related, Is it possible to copy the original file of an alias using keyboard shortcuts?
gota (274 rep)
Nov 10, 2015, 08:38 PM • Last activity: Feb 15, 2025, 10:15 AM
0 votes
1 answers
74 views
How to alias the "Apple version" of 'ls -lO'?
macOS Ventura with a 'MacPorts' installation that includes GNU replacements for numerous *"Apple-sourced"* utilities including `ls`. The original `ls` is located at `/bin/ls`, the GNU/MacPorts version of `ls` is located at `/opt/local/libexec/gnubin/ls`. The GNU version of `ls` works for most things...
macOS Ventura with a 'MacPorts' installation that includes GNU replacements for numerous *"Apple-sourced"* utilities including ls. The original ls is located at /bin/ls, the GNU/MacPorts version of ls is located at /opt/local/libexec/gnubin/ls. The GNU version of ls works for most things, but in some cases (one in particular) I need the *"Apple-sourced"* version of ls. For example, to list the 'file flags' (ref man chflags), I need the O option... the GNU version does not provide this. I'd like to set an alias in ~/.zshrc that handles ls -lO, and possibly other options unique to the *"Apple-sourced"* version of ls. I've tried several aliases in ~/.zshrc that didn't work; e.g.
alias ls -lO='/bin/ls -lO'
How to do this?
Seamus (5329 rep)
Feb 14, 2025, 08:26 AM • Last activity: Feb 14, 2025, 08:28 AM
0 votes
2 answers
2738 views
How to use input variable in .zshrc alias?
I'm trying to create this alias: `alias mrc="php artisan make:controller $(user_input) --resource"` so that I can just type `mrc ControllerName` in the terminal to produce: `php artisan make:controller ControllerName --resource` Is there a way to do that?
I'm trying to create this alias: alias mrc="php artisan make:controller $(user_input) --resource" so that I can just type mrc ControllerName in the terminal to produce: php artisan make:controller ControllerName --resource Is there a way to do that?
Artur Müller Romanov (261 rep)
May 13, 2022, 06:49 AM • Last activity: Jan 28, 2025, 05:57 PM
4 votes
1 answers
198 views
How can I stop iTerm2 from hiding first line of my clear; ls -F alias command?
I've been using a `cls` alias over 20 years: ``` cls="clear; ls -F" ``` Simply, clears screen, then lists files. It's become a habit now - I cannot stop using it ... However, with the newer releases of iTerm2, (version 3.5.4), this alias is hiding the first line of the directory's files. See Image b...
I've been using a cls alias over 20 years:
cls="clear; ls -F"
Simply, clears screen, then lists files. It's become a habit now - I cannot stop using it ... However, with the newer releases of iTerm2, (version 3.5.4), this alias is hiding the first line of the directory's files. See Image below. Is there a setting I can use the change this behavior? ![Issuing cls alias results in first line of output being hidden ][1]
RichWalt (161 rep)
Aug 23, 2024, 01:54 PM • Last activity: Sep 27, 2024, 01:05 AM
3 votes
2 answers
279 views
strange issue with aliases for zsh
I'm trying to create an alias in my `.zshrc` file for an SSH connection. The full command is this: ```zsh ssh -t pi@raspi5 "cd ~/C-progs/c_trials; exec \$SHELL -l" ``` The command is designed to open an SSH connection, `cd` to a chosen directory, and then start a login shell. I can execute this comm...
I'm trying to create an alias in my .zshrc file for an SSH connection. The full command is this:
ssh -t pi@raspi5 "cd ~/C-progs/c_trials; exec \$SHELL -l"
The command is designed to open an SSH connection, cd to a chosen directory, and then start a login shell. I can execute this command perfectly well from the command line of Terminal, and it does exactly what it's supposed to do. The command is a bit to remember, so I decided to create an alias for it. I put the alias in ~/.zshrc:
alias sshrp5="ssh -t pi@raspberrypi5 "cd ~/C-progs/c_trials; exec \$SHELL -l""
Which is, IIUC, the *prescribed* way to create an alias under zsh. Unfortunately, zsh apparently does not like this alias:
source ~/.zshrc
sourceing ~/.zshrc with the above alias in it immediately closes the Terminal tab from which I attempted the source command!! Fortunately, I had 3 tabs open, otherwise I would have been **locked out** of Terminal!! Anybody know what I've done to offend the great and powerful zsh? :)
Seamus (5329 rep)
Feb 2, 2024, 08:45 AM • Last activity: Aug 30, 2024, 07:01 AM
2 votes
0 answers
335 views
Can't move files into aliases stored on the Finder's Favorites sidebar?
I'm trying to make some aliases and add them to my Finder favorites so that they can be renamed without altering the original folder in any way (the original folder is on a shared work network). I'm able to create the alias, rename the alias folder to something I want, and add them to my Finder favo...
I'm trying to make some aliases and add them to my Finder favorites so that they can be renamed without altering the original folder in any way (the original folder is on a shared work network). I'm able to create the alias, rename the alias folder to something I want, and add them to my Finder favorites. But I am unable to drag files into the alias from the favorites sidebar. When I try, I am not met with the typical blue highlight you'd expect to see when a file can be dropped into the folder, like in the second image. I'm still able to move files into the alias folder as long as I drop them directly in the folder and not the finder shortcut. Any idea if there's a solution? I've tried making symbolic links and it demonstrated the exact same behavior as regular aliases. Trying to move a file into an alias' Finder favorites shortcut. No blue highlight indicating that the file can be moved there Moving a file into a regular folder's Finder favorites shortcut
NicholasGFX (33 rep)
Aug 18, 2021, 06:28 PM • Last activity: Aug 9, 2024, 07:01 PM
2 votes
1 answers
355 views
After update to MacOS Big Sur 11.7.7 desktop aliases fail to open the original folders
After the upgrade to BigSur 11.7.7. all of the folder aliases on my desktop fail to open the original folders in Finder. Similar bug to the one reported in "MacOS 11.4 Big Sur has issues with alias … - Apple Community" . My bug is slightly different. As in the bug above, double clicking on the alias...
After the upgrade to BigSur 11.7.7. all of the folder aliases on my desktop fail to open the original folders in Finder. Similar bug to the one reported in "MacOS 11.4 Big Sur has issues with alias … - Apple Community" . My bug is slightly different. As in the bug above, double clicking on the alias fails to open the target folder, instead displaying the files for Macintosh>Users>timothychilders. But unlike the original bug report above, using a right click to 'Get Info' shows the correct path to the Original folder. And the button Select New Original... lets me click it and will let me navigate to the Original folder and select it. But after I do this the finder STILL displays the files for Macintosh>Users>timothychilders. I tried both a Shutdown, and a Restart with no change in behavior. Also tried to delete the alias on the desktop, and create a brand new alias and moved that new alias to the desktop. The new desktop alias exhibits the same behavior. A post on StackExchange>AskDifferent suggested deleting the apple.com.finder.plist from Library/Preferences and rebooting to let MacOS Finder build a new .plist. but I didn't fine apple.com.finder.plist there, even after a reboot. Any suggestions would be appreciated.
Timothy Childers (53 rep)
Jun 24, 2023, 03:19 AM • Last activity: Jul 15, 2024, 03:02 AM
0 votes
2 answers
1309 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 be addressable from AppleScript after the prefix has been added to the file. The following code work...
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 be addressable from AppleScript after the prefix has been added to the file. The following code works on SOME machines but not others. I have tried it on a 2018 MBP running 10.13, a 2012 Mac Mini running 10.13, and a 2015 iMac running 10.13 and 10.14. The iMac is the only machine that has problem with this code: tell application "Finder" set theSelection to the selection -- so you must have a folder with files selected in Finder before running this code. set theFiles to the files of (item 1 of theSelection) --get the files end tell repeat with f from 1 to (count theFiles) set aItem to item f of theFiles -- set a variable as an individual file set pdfName to name of aItem --get the name of that file set aliasItem to aItem as alias -- get the alias of the file tell application "Finder" set the name of aliasItem to (("temp_" & (name of aliasItem)) as string) --rename the file end tell display dialog (aliasItem as string) buttons {"Cancel", "OK"} default button "OK" --this is just here for testing the script, to see what the system still thinks the file is named set posixPath to (POSIX path of aliasItem) --THIS is where the code fails on some machines. end repeat The code fails on SOME machines when I try to convert the alias into a posix path. On the machines that this script works on, the test display dialog lists the file alias with the new name. So foo.txt becomes temp_foo.txt. On the machines that the script fails the display dialog comes back with just foo.txt as the file name. On the machine on which this is failing, the file will be renamed temp_foo.txt like it should be, but the alias never updates, so it still thinks the file is just foo.txt. On the failing machines, the last command to set the variable to the posix path of the alias fails because the alias is incorrect since it is still pointing to the old file name. If need be I will just rename all the files in one loop, then come back around and get the posix paths in another loop, since doing a new set theTempFiles to files of (item 1 of theSelection) Should get a new list of the files, now with their "temp_" prefix. But it pains me to put in a repeat loop that I don't think is really necessary since the code works FINE on some machines. Who can help me to get my code to run fine, and who can get it to fail? I just would like to see how big of an issue this is. Also it would be nice if someone could tell me that I am doing something horribly wrong in my code, and that is why I am getting unpredictable results.
Chris Norman (314 rep)
Nov 22, 2019, 05:36 PM • Last activity: May 24, 2024, 08:32 PM
1 votes
2 answers
2503 views
How to add IP alias in MacOS Sonoma
Seems like Apple decided to remove features, in previous MacOS versions it was very simple to have multiple IP addresses for the same interface, now no more. The duplicate service no longer work Anyone who know how to do it? A simple explanation of how to add multiple IP addresses to a network inter...
Seems like Apple decided to remove features, in previous MacOS versions it was very simple to have multiple IP addresses for the same interface, now no more. The duplicate service no longer work Anyone who know how to do it? A simple explanation of how to add multiple IP addresses to a network interface in MacOS Sonoma
Puccet
Jan 17, 2024, 10:53 PM • Last activity: May 23, 2024, 06:06 PM
5 votes
2 answers
2529 views
Limit number for "Hide my Email"?
I am in the process of modifying all my accounts to assign a unique email address to each one via the "Hide my Email" function. I am currently at 273 addresses created for the occasion but I wonder if there is a limit for the number of this addresses. I can't find the information anywhere on the App...
I am in the process of modifying all my accounts to assign a unique email address to each one via the "Hide my Email" function. I am currently at 273 addresses created for the occasion but I wonder if there is a limit for the number of this addresses. I can't find the information anywhere on the Apple support pages. Thanks in advance for your help! Julien
JuCos (51 rep)
May 13, 2022, 07:36 PM • Last activity: May 7, 2024, 05:02 AM
8 votes
3 answers
984 views
Link command in terminal vs ln vs symbolic link (ln -s) differences between them?
I've learnt about aliases and symbolic links ages ago, but only recently learnt of the `link` command from https://apple.stackexchange.com/questions/323213/symbolic-link-vs-alias Is the `link` command in terminal on my MacOS - version is Sonoma 14.4.1 the same as `ln` or is it its own command? I've...
I've learnt about aliases and symbolic links ages ago, but only recently learnt of the link command from https://apple.stackexchange.com/questions/323213/symbolic-link-vs-alias Is the link command in terminal on my MacOS - version is Sonoma 14.4.1 the same as ln or is it its own command? I've not actually done this often on terminal, but I did: touch test1.txt then edited it in a text editor with the content "Test" and then in terminal: link test1.txt test2.txt When would the link command be useful on MacOS as compared to symbolic link and alias? If you could explain - much appreciated!
avenas8808 (303 rep)
Mar 28, 2024, 01:00 PM • Last activity: Mar 29, 2024, 11:55 PM
1 votes
1 answers
668 views
Send email from alias by default, Mail app
In the Mail app, I would like to automatically send new emails from my alias. I have the alias set up so that it appears as one of the options in the "From" menu when composing an email, but the "Send new messages from" menu in Preferences > Composing only lists my three accounts, without the alias...
In the Mail app, I would like to automatically send new emails from my alias. I have the alias set up so that it appears as one of the options in the "From" menu when composing an email, but the "Send new messages from" menu in Preferences > Composing only lists my three accounts, without the alias option. Is there a way to automatically send emails from my alias, without having to choose it each time I compose a new email? In the Gmail webapp, this can be done, but I'd like to do it from the Mail app.
Simon Alford (253 rep)
Sep 13, 2021, 03:18 PM • Last activity: Mar 7, 2024, 10:10 PM
2 votes
1 answers
369 views
Create auto alias of every folder in a specific folder in bash_profile or bash_alias
Using *macOS Sonoma 14.2.1* We created an alias in `.bash_profile` or `.zsh_profile` and added the alias like this: ```sh alias dev='cd ~/Developer' ``` Now there are many folders inside this and for each project I have to create alias for that to access early. Now in *Developer* folder there are 3...
Using *macOS Sonoma 14.2.1* We created an alias in .bash_profile or .zsh_profile and added the alias like this:
alias dev='cd ~/Developer'
Now there are many folders inside this and for each project I have to create alias for that to access early. Now in *Developer* folder there are 3 project folders:
.Developer
├── apple
├── canvas
└── demo
Currently, I created separate alias for each folder to access them as below:
alias apple='cd ~/Developer/apple'
alias canvas='cd ~/Developer/canvas'
alias demo='cd ~/Developer/demo'
This works fine but I am looking for any optimal solution or bash script which automatically generate an alias for each folder of a specific folder and add into .bash_profile. Or when creating new folder in this directory, it automatically adds new alias for the new folder.
xkeshav (247 rep)
Feb 4, 2024, 08:11 AM • Last activity: Feb 4, 2024, 06:42 PM
0 votes
0 answers
449 views
Cannot open folders in ~/Documents via alias or recent items
I am having a similar issue as outlined in [A "Library"-folder appeared in my Documents folder on Mac, Is that normal?][1] but with the added problem of I cannot open any folder located in `~/Documents` via an alias or recent items. All that opens when I try is just the root of the Mac HD. All of th...
I am having a similar issue as outlined in A "Library"-folder appeared in my Documents folder on Mac, Is that normal? but with the added problem of I cannot open any folder located in ~/Documents via an alias or recent items. All that opens when I try is just the root of the Mac HD. All of the folders and data are still present and the OS knows they are there because I am never asked to fix any of the aliases. Have not had any luck finding a solution to getting these working again and welcome any input.
rayo3d (1 rep)
Mar 9, 2021, 05:04 PM • Last activity: Dec 4, 2023, 04:41 AM
5 votes
3 answers
2620 views
Alias for network drive
In the `Finder > Connect To Server` window I have an IP address I connect to. Is there a way to make a nickname or alias for this server?
In the Finder > Connect To Server window I have an IP address I connect to. Is there a way to make a nickname or alias for this server?
user588
Feb 17, 2011, 09:46 PM • Last activity: Nov 2, 2023, 01:51 PM
7 votes
2 answers
13061 views
Limitations of iCloud+ own domain
What are the limitations of iCloud+ own domain in regard to emails? > ### Use Custom Email Domain with iCloud Mail > https://support.apple.com/en-us/HT212514 I am looking for: * a single domain which I already own * 3 email boxes for 3 family members (me, partner, kid) * two emails that is forwarded...
What are the limitations of iCloud+ own domain in regard to emails? > ### Use Custom Email Domain with iCloud Mail > https://support.apple.com/en-us/HT212514 I am looking for: * a single domain which I already own * 3 email boxes for 3 family members (me, partner, kid) * two emails that is forwarded somewhere else (grandparents use a different email but share our domain, could be 2 extra email boxes if forwarding without an email box is not supported) * 15 aliases for my own email (I have many aliases yeah) Everything looks straightforward (MX, TXT, setup) but I need to know in advance before I commit to the change. Google Apps free tier is closing and I am not interested in buying Google's full package - I only use Gmail and YouTube. I read that there might be limitation of 5 domains (okay), 3 accounts (are these email boxes?) and 3 aliases (what?). That is really weird. Thanks!
lzap (317 rep)
Jan 20, 2022, 03:48 PM • Last activity: Aug 29, 2023, 04:57 AM
8 votes
1 answers
11917 views
What is the "On My Mac" folder in macOS Big Sur?
I have recently upgraded to macOS Big Sur 11.0.1 from macOS 10.15.7 on my 2016 MacBook Pro. In Finder, there is a new (?) folder called "On My Mac" which I have never seen before. It contains nothing useful, just an empty "PDF Expert" folder and a "BBEdit" folder with a file called "BBEdit Backups"...
I have recently upgraded to macOS Big Sur 11.0.1 from macOS 10.15.7 on my 2016 MacBook Pro. In Finder, there is a new (?) folder called "On My Mac" which I have never seen before. It contains nothing useful, just an empty "PDF Expert" folder and a "BBEdit" folder with a file called "BBEdit Backups" which is of type "alias" (so I guess it's an alias of something). This folder doesn't have any parent folder, it seems some kind of root folder (or very close to), but it for sure was not there in Catalina. Does anyone know what it could be and if I should do something with it? Following the suggestion in the comments I have dragged the folder on a Terminal window. Nothing happened but it disappeared from the Favourites sidebar in Finder. For the records, rebooting the Mac or logging out/in makes it reappear with the same contents.
NotationMaster (1734 rep)
Dec 6, 2020, 07:29 PM • Last activity: Aug 25, 2023, 04:25 AM
2 votes
2 answers
2053 views
Folder that automatically creates aliases
**I like to save inspirational imagery in my dock. Since my Downloads folder is always a giant pile of files that I hoard and enjoy to go through every once in a while.** Now to save space in my Dock I’d have to have a folder as a stack where all those aliases to inspirational files are stored in. I...
**I like to save inspirational imagery in my dock. Since my Downloads folder is always a giant pile of files that I hoard and enjoy to go through every once in a while.** Now to save space in my Dock I’d have to have a folder as a stack where all those aliases to inspirational files are stored in. It would be nifty to be able to drag files into that folder and have the folder automatically create an alias of the file instead of moving it to there. *That way I wouldn’t have to use shortcuts etc. and could simply drag files into there without actually moving them.* **Understood?** Maybe someone knows a solution. I’m guessing an AppleScript would be required. Let’s work together on this to make it happen.
SarenSabertooth (41 rep)
Aug 12, 2016, 11:27 PM • Last activity: Aug 22, 2023, 01:35 AM
Showing page 1 of 20 total questions