Sample Header Ad - 728x90

Ask Different (Apple)

Q&A for power users of Apple hardware and software

Latest Questions

10 votes
3 answers
3621 views
How to set up a default program opening an unknown file extension?
I tried to open a file with an extension name of adb in Finder (to be precise, PathFinder). When I clicked the file, vi editor is activated to open the adb file. I didn't do anything with the adb file, so my guess is that vi editor changed the system setup to open it whenever unknown file format is...
I tried to open a file with an extension name of adb in Finder (to be precise, PathFinder). When I clicked the file, vi editor is activated to open the adb file. I didn't do anything with the adb file, so my guess is that vi editor changed the system setup to open it whenever unknown file format is opened. How can I change this behavior? I want to open TextMate as a default.
prosseek (5726 rep)
Jan 14, 2011, 03:01 PM • Last activity: May 27, 2025, 01:06 PM
1 votes
0 answers
137 views
How can I tell Gatekeeper not to check (downloaded) files with a specific extension?
Since the upgrade to macOS 15.4, I've noticed that every time I try to open a [Lilypond](https://lilypond.org/) file, Gatekeeper blocks me from doing so: [![screenshot of dialog][1]][1] > Apple could not verify "EL 38 1.ly" is free of malware that may harm your Mac or compromise your privacy. Thanks...
Since the upgrade to macOS 15.4, I've noticed that every time I try to open a [Lilypond](https://lilypond.org/) file, Gatekeeper blocks me from doing so: screenshot of dialog > Apple could not verify "EL 38 1.ly" is free of malware that may harm your Mac or compromise your privacy. Thanks to e.g. [this answer](https://discussions.apple.com/thread/255852595?answerId=260941200022&sortBy=rank#260941200022) I know I can fix this via System Settings → Privacy & Security and scrolling down to the Security area. However, I have to do that every time I open a new Lilypond file, which is rather annoying. Is there a way I can tell Gatekeeper to ignore files with the .ly extension? I have already set BBEdit as the default app to open .ly files. Right-clicking the file and choosing Open With → BBEdit.app gives the same dialog. ls gives the following information:
% ls -@l ~/Downloads/EL21.ly
-rw-r--r--@ 1 Glorfindel  staff  3314 May 11 20:08 /Users/Glorfindel/Downloads/EL21.ly
	com.apple.metadata:kMDItemWhereFroms	 181 
	com.apple.quarantine	  57
If I then do
cat EL21.ly > test.ly
the test.ly file opens without problems, so it seems related to the file being downloaded.
Glorfindel (4228 rep)
May 11, 2025, 10:51 AM • Last activity: May 11, 2025, 06:10 PM
6 votes
3 answers
1365 views
File with no extension will be opened by TextEdit by default. How do I change that?
File with no extension will be opened by TextEdit by default. For example, in terminal run `open ~/.ssh/known_hosts` will open TextEdit to edit `known_hosts` These files are normally just text file so I don't want to use TextEdit open them (e.g. I want to use BBEdit to open them) but because they ha...
File with no extension will be opened by TextEdit by default. For example, in terminal run open ~/.ssh/known_hosts will open TextEdit to edit known_hosts These files are normally just text file so I don't want to use TextEdit open them (e.g. I want to use BBEdit to open them) but because they have no extension I can't find an each way to change the default app to open them in one shot. Change them one by one is not workable. So is there any way to change them in one shot? https://apple.stackexchange.com/questions/123833/replace-text-edit-as-the-default-text-editor does not work for me, First, the highest two answers there said something like duti -s com.sublimetext.4 public.plain-text all but as @Seamus said in his updated answer "The accepted answer may have been correct when it was written, but does not work for current (as of approximately Catalina vintage) systems because the UTI for a text file without a file extension is now apparently public.data". Besides I don't know how edit bbedit part, is it com.bbedit.13 (I use bbedit 13 or what else)? Second, all the other 3rd-party apps are too old, at least 10 years old without any update.
Qiulang 邱朗 (879 rep)
Apr 26, 2023, 10:00 AM • Last activity: Apr 22, 2025, 03:00 PM
0 votes
0 answers
38 views
File extension cannot be hidden when the file name ends with a string which exists as an extension
I have one specific file whose extension cannot be hidden: [![enter image description here][1]][1] (the bottom-right file in this screenshot). If I press ⌘I, the `hide extension` option is ticked and greyed out: [![enter image description here][2]][2] I *can* press RETURN, which removes `.pdf` from...
I have one specific file whose extension cannot be hidden: enter image description here (the bottom-right file in this screenshot). If I press ⌘I, the hide extension option is ticked and greyed out: enter image description here I *can* press RETURN, which removes .pdf from the end of the filename by itself (i.e. I don't need to delete those four characters myself). The file then ceases to display an extension in Finder until I close the Finder window or navigate to another folder; when I navigate to that folder again, the extension is there. Oddly enough, if I rename the file so its name doesn't end in . Bear, the extension disappears and the hide extension option becomes available again: enter image description hereenter image description here (For example, I can add one or more characters after Bear (as in the screenshot), add a character between the last period and Bear, or change Bear to something else like Boar. It isn't the specific file. I tried deleting that file and renaming another file to the same thing, and the result was the same. I also tried changing the number at the beginning of the file name, again with the same result. The problem seems to be having a file whose name ends in . Bear. Also, it doesn't seem to be case-sensitive; . bear has the same problem. I do have an app called Bear which uses files with extension .bear. Maybe that has something to do with the issue. Keynote, for example, uses files with extension .key, and if I rename the aforementioned file so it ends in . key the same thing happens, so that *must* be the issue: enter image description here Ending the file name in . App also has that problem, presumably because .app is the extension for macOS apps. For what it's worth, I don't have "show all filename extensions" selected in Finder preferences (otherwise it wouldn't just be files with the names in question). **Is there any way to change this behaviour, which seems to be a problem with how macOS handles file names and extensions?**
Rain (504 rep)
Mar 19, 2025, 11:26 PM • Last activity: Mar 21, 2025, 09:48 PM
2 votes
0 answers
493 views
How can I disable file extension correction on macOS Sequoia?
I'm on Sequoia 15.1 beta version. Whenever I try to save a file with a e.g. a text editor, and it uses the standard macOS file saving dialog, it autocorrects my file endings without asking me. For example, if I name the file `.pngg` and click on save, it will be saved as `.pngg.png`. For example, I...
I'm on Sequoia 15.1 beta version. Whenever I try to save a file with a e.g. a text editor, and it uses the standard macOS file saving dialog, it autocorrects my file endings without asking me. For example, if I name the file .pngg and click on save, it will be saved as .pngg.png. For example, I wanted to save an SQL script, so I named it .sql, and my Mac made it .sql.s. **If you want to try to reproduce:** - Grab your favorite text editor (I tested it with Sublime Text, Zed and TextEdit) - If your app uses the standard macOS dialog to save files and **does not** require a specific file ending. For example, when just opening a new file in Sublime Text and saving it, this worked, but when I choose e.g. Python syntax, macOS will always add .py to your file and doesn't tries to autocorrect it - If you're using TextEdit, Format > Make it plain text, and uncheck the .txt checkbox in the file dialog - Now create any file, save it and name it something with a made up filename, like .txtx which clearly doesn't exist but is similar to .txt, or .exea which will become .exe and so on. - Click on save it look at your filename now. I can’t tell if this is a feature from the beta or a bug. Can I prevent this and get files saved exactly how I name them? ## Edit ## This seems to be a feature / bug added in the Sequoia beta. There's currently no solution for this, if you have problems with it just use the touch command instead, or save and then rename the file. Look at this for more information: - https://github.com/zed-industries/zed/issues/16969 - https://forum.sublimetext.com/t/sublime-text-started-adding-a-s-to-new-files-very-annoying/73628/6 - https://news.ycombinator.com/item?id=41618926
axolotlKing0722 (169 rep)
Aug 30, 2024, 02:32 PM • Last activity: Oct 16, 2024, 04:08 PM
0 votes
0 answers
26 views
Desktop > Clean Up By > Size : The resulting arrangement makes no sense. Am I missing something?
If I run the action: Desktop > Clean Up By > Size : The resulting arrangement makes no discernible sense. Am I missing something? I have had this problem persist through many macOS updates. I do not know if it is just my computer, if I don't understand what's going on, or if this is a more common pr...
If I run the action: Desktop > Clean Up By > Size : The resulting arrangement makes no discernible sense. Am I missing something? I have had this problem persist through many macOS updates. I do not know if it is just my computer, if I don't understand what's going on, or if this is a more common problem. It is only mostly arranged vertically by file type, but that doesn't make sense because there should not be a string of multiple folders in a row when various other files have sizes that should break that sequence up. The folders also aren't even in the right order. Finder's sort by size feature still works perfectly well. Desktop > Clean Up By : Also works perfectly fine for every other variable.
JJ123 (1 rep)
Apr 12, 2024, 05:50 AM
2 votes
1 answers
95 views
Hide specific file extension
I have just started using Sublime Text and their workspace files have the horrible long extension ".sublime-workspace", **so I want to hide that and only that extension**. When I do "Cmd+I > Hide extension" the extension is still shown unless I untick "Show all filename extensions" from Finder Setti...
I have just started using Sublime Text and their workspace files have the horrible long extension ".sublime-workspace", **so I want to hide that and only that extension**. When I do "Cmd+I > Hide extension" the extension is still shown unless I untick "Show all filename extensions" from Finder Settings. But if I do that Finder also hides .png and such, which is not an option. Is there a clever Terminal command for this?
Tonald Drump (121 rep)
Feb 14, 2023, 08:33 AM • Last activity: Apr 7, 2024, 02:08 PM
2 votes
3 answers
242 views
How can I set program associations in mac?
I know the way to change association per extension (get info => open with => change all) but is there a way like in Windows to change association of all video extensions to be opened by VLC like this: [![enter image description here][1]][1] [1]: https://i.sstatic.net/S93Wi.png
I know the way to change association per extension (get info => open with => change all) but is there a way like in Windows to change association of all video extensions to be opened by VLC like this: enter image description here
MAlshehri (123 rep)
Jul 7, 2017, 12:27 PM • Last activity: Mar 29, 2024, 06:05 PM
10 votes
4 answers
45437 views
zsh can't see and doesn't load the ~/.zshrc startup file
After upgrading to Catalina and encountering the zsh upgrade reminder when launching Terminal, I've decided to switch to zsh. The default interactive shell is now zsh. To update your account to use zsh, please run `chsh -s /bin/zsh`. For more details, please visit https://support.apple.com/kb/HT2080...
After upgrading to Catalina and encountering the zsh upgrade reminder when launching Terminal, I've decided to switch to zsh. The default interactive shell is now zsh. To update your account to use zsh, please run chsh -s /bin/zsh. For more details, please visit https://support.apple.com/kb/HT208050 . However, I'm having trouble getting Terminal/zsh to recognize the .zshrc startup file located in my home folder. ~/zshrc isn't loaded on launch, and executing source ~/.zshrc returns source: no such file or directory. The file only contains one line, an alias tying python to python3. Finder showing .zshrc presence next to an open TextEdit window of the file Terminal showing the lack of any aliases and the failed source command
Magnus Lind Oxlund (369 rep)
Jul 30, 2020, 01:42 PM • Last activity: Mar 15, 2024, 02:43 PM
1 votes
1 answers
3831 views
Parsing or decoding .pluginPayloadAttachment files?
Messages.app now stores links in the sqlite attachment database as files with ".pluginPayloadAttachment" extension. I have no idea how to parse these. Running them through `xxd` reveals some indecipherable binary/hex, except for an ASCII string at the top, "ICC_PROFILE", which I assume refers to col...
Messages.app now stores links in the sqlite attachment database as files with ".pluginPayloadAttachment" extension. I have no idea how to parse these. Running them through xxd reveals some indecipherable binary/hex, except for an ASCII string at the top, "ICC_PROFILE", which I assume refers to color profiling, since "RGB" appears shortly after.
Zack Burt (111 rep)
Nov 15, 2019, 03:57 PM • Last activity: Dec 5, 2023, 12:29 AM
0 votes
0 answers
112 views
How can one see the file extensions of images and videos on iPhone?
I have taken a few pictures and videos with an iPhone 12, which runs iOS 15. How can one see the file extensions of these images and videos on the iPhone? I don't see file extensions in the native photo app. I only see the codec information: [![enter image description here][1]][1] I don’t see these...
I have taken a few pictures and videos with an iPhone 12, which runs iOS 15. How can one see the file extensions of these images and videos on the iPhone? I don't see file extensions in the native photo app. I only see the codec information: enter image description here I don’t see these images and videos in the Files app: enter image description here
Franck Dernoncourt (3616 rep)
Oct 12, 2023, 05:53 PM • Last activity: Oct 12, 2023, 06:13 PM
0 votes
0 answers
41 views
Open files with prefixed with a pattern at the beginning of file name
I have several files with names c.XXXX and fort.XXXX, where XXXX are arbitrary characters. I want these file types to open by default in Emacs or TextEdit. How to do it?
I have several files with names c.XXXX and fort.XXXX, where XXXX are arbitrary characters. I want these file types to open by default in Emacs or TextEdit. How to do it?
akr (1 rep)
Aug 1, 2023, 08:39 PM • Last activity: Aug 1, 2023, 09:11 PM
1 votes
1 answers
457 views
File extension association to LibreOffice calc in macOS
I'm using macOS Big Sur 11.5.2 and LibreOffice 7.2.0.4. **I want to associate a file extension (unknown to LibreOffice, eg ".myfileExtension") to a specific LibreOffice program.** In my particular case it's Calc. However, when I do the regular process to associate a file extension to a program using...
I'm using macOS Big Sur 11.5.2 and LibreOffice 7.2.0.4. **I want to associate a file extension (unknown to LibreOffice, eg ".myfileExtension") to a specific LibreOffice program.** In my particular case it's Calc. However, when I do the regular process to associate a file extension to a program using Open With in Finder, the only option is "LibreOffice" (not Calc in particular). If I set LibreOffice as the default program for that extension, LibreOffice opens the file with Writer. **I do not want to change the file extension** to some extension already associated with Calc (like, guessing, ".tsv") because I have lots of this files and I am constantly generating new ones. So, the question is: How do I get to associate a particular file extension with a particular LibreOffice program (Calc)?
Agustin Carbajal (11 rep)
Sep 6, 2021, 04:52 PM • Last activity: Jun 1, 2023, 06:08 AM
63 votes
5 answers
10772 views
Stop Xcode from Hijacking my File Associations
I typically associate certain file types with certain editors and IDEs. You know R with RStudio, Java with JetBrains, and all the other goodies with Sublime Text. But every time I install an Xcode update, Xcode takes over every code-related extension imaginable, and I have to associate my files manu...
I typically associate certain file types with certain editors and IDEs. You know R with RStudio, Java with JetBrains, and all the other goodies with Sublime Text. But every time I install an Xcode update, Xcode takes over every code-related extension imaginable, and I have to associate my files manually. Is there anyway to prevent Xcode from taking over my file associations?
fny (1297 rep)
Mar 1, 2018, 12:26 AM • Last activity: Feb 12, 2023, 03:53 AM
3 votes
4 answers
13167 views
iPhone: Is it possible to rename the extension of a file?
I have an iPhone 5. I am new to this world. Example file: MyFile.zip.jpg ... must be **renamed** to: MyFile.zip ... or, if not possible or feasible, this file : MyFile.jpg ... must be **renamed** to: MyFile.zip **Sumarizing**: I would like to acquire some **control of the extension** (the characters...
I have an iPhone 5. I am new to this world. Example file: MyFile.zip.jpg ... must be **renamed** to: MyFile.zip ... or, if not possible or feasible, this file : MyFile.jpg ... must be **renamed** to: MyFile.zip **Sumarizing**: I would like to acquire some **control of the extension** (the characters after the last dot .) in the name of the files. Methods **easy** to perform for unexperienced users are preferred. What could this be used for? Example: **Privacy** is something of the past, we must admit it. But some people (like me) still would like to be able to send, say, a private email that only the receiver will read. **Sending encrypted files** is becoming forbidden for some email providers, like GMail (read their terms), so .zip or .rar encrypted are returned to the sender as failed. And installing **cryptographic programs** is a nightmare for common (and even experienced) users of something like an iPhone. A simple workaround: send your files (a document if you just want to send text) **inside an encrypted file** (say .rar) like: MyPrivateFile.rar ... but rename it to: MyPrivateFile.jpg The receiver must rename just the extension, and voila! : you both have succeeded in sending encrypted info via email. But, as you know, the email program's **interface** in the iPhone is too simple. I am not very experienced in using it, but I think it does not allow... well, it does not allow many things, even file saving inside the phone, so renaming file extensions must be even more difficult.
Sopalajo de Arrierez (281 rep)
Jul 17, 2015, 09:36 PM • Last activity: Jan 22, 2023, 11:43 PM
14 votes
6 answers
9746 views
Icons remains the same after I have changed the default program for opening the file
I have just uninstalled a program from my new mac. The program was making itself default to open all `.r` files. I installed a new program, and I maked it default for opening `.r` files, but the old icon of the files remains. The icon of the old program is stil at every `.r`-files. How can I update...
I have just uninstalled a program from my new mac. The program was making itself default to open all .r files. I installed a new program, and I maked it default for opening .r files, but the old icon of the files remains. The icon of the old program is stil at every .r-files. How can I update the icons of the .r-files, so they view the icons of the new program? And why do this icon still exist at my mac, can I remove the icon of the old program?
Mathematica (163 rep)
Mar 24, 2014, 07:16 PM • Last activity: Nov 21, 2022, 10:07 AM
1 votes
2 answers
4891 views
How to reset file icons associated with default program on El Capitan
I've uninstalled my former default text editor which I used for many different file formats. Unfortunately the associated icons are not removed automatically. As a result, several file types still use the icon of the program, even though it's not on my machine anymore. There a several similar questi...
I've uninstalled my former default text editor which I used for many different file formats. Unfortunately the associated icons are not removed automatically. As a result, several file types still use the icon of the program, even though it's not on my machine anymore. There a several similar questions around here and [this one](https://apple.stackexchange.com/questions/125402/icons-remains-the-same-after-i-have-changed-the-default-program-for-opening-the) seemed to be most promising, but it doesn't work on El Capitan (version 10.11.5). Does anyone how I can achieve this on a current version of Mac OS X? **EDIT:** After assigning a new default program (no matter if I do that via RCDefaultApp or Finder), the old icon remains. If, for instance, I choose Atom as the new default editor for XML files, the former editor icon (Emacs) is still there. Screenshot
beatngu13 (111 rep)
Jul 21, 2016, 11:29 AM • Last activity: Nov 21, 2022, 09:56 AM
1 votes
0 answers
607 views
How to locate extensions in list of macOS system settings?
I am working on a macOS file provider extension. Sometimes it cannot register itself (or more precisely its file provider domains) correctly due to some XPC issues with the `NSFileProviderManager`. Then I try to get a clean environment again. 1. I completely erased Xcode's DerivedData. 2. I emptied...
I am working on a macOS file provider extension. Sometimes it cannot register itself (or more precisely its file provider domains) correctly due to some XPC issues with the NSFileProviderManager. Then I try to get a clean environment again. 1. I completely erased Xcode's DerivedData. 2. I emptied the trash because macOS does not care about the locations in this regard and loads extensions from there, too. 3. I removed all of the extensions file provider domains from the side bar in Finder. Looking for my extension in pluginkit yields no results by running this command:
$ pluginkit -vvvvmi 
  (no matches)
It also does not appear in the full list when leaving out the explicit identifier specification. **Still it appears in the list of the system settings! Where does this come from and how to reset it?** I can enable and disable them in the system settings. They even survive a reboot. And in macOS' Console.app I continuously see entries about the file providers displayed as "SomeProduct" and "Provider" here along their bundle identifiers. It appears like I messed up fileproviderd. system settings screenshot I considered this more appropriate for this StackExchange site rather than StackOverflow because it is not directly related to programming. Also [these answers](https://apple.stackexchange.com/q/152541/58460) unfortunately did contain a solution. I also wrote a feedback in feedback assistant but according to my experience that is unlikely to be heard.
p13n (140 rep)
Sep 28, 2022, 12:03 PM • Last activity: Oct 4, 2022, 01:35 PM
5 votes
1 answers
1456 views
Disable macOS Finder confirmation: "Are you sure you want to change the extension?"
Every time I change a file type in Finder, I'm forced to confirm that I actually want to change the file extension. [![change File Extension confirmation dialog][1]][1] > Are you sure you want to change the extension from ".old" to ".new"? > > If you make this change, your document may open in a dif...
Every time I change a file type in Finder, I'm forced to confirm that I actually want to change the file extension. change File Extension confirmation dialog > Are you sure you want to change the extension from ".old" to ".new"? > > If you make this change, your document may open in a different application. > > Keep .old Use .new How can I stop going through this confirmation step?
pkamb (9620 rep)
Mar 30, 2020, 08:04 PM • Last activity: Sep 27, 2022, 03:44 AM
0 votes
1 answers
251 views
Disable macOS Finder confirmation: "Are you sure you want to add the extension to the end of the name?"
When I add a file extension to the end of a file name, macOS annoyingly nags me with a confirmation prompt: [![Are you sure you want to add the extension ".md" to the end of the name?][1]][1] > Are you sure you want to add the extension ".md" to the end of the name? > > If you make this change, your...
When I add a file extension to the end of a file name, macOS annoyingly nags me with a confirmation prompt: Are you sure you want to add the extension > Are you sure you want to add the extension ".md" to the end of the name? > > If you make this change, your document may open in a different application. > > Don't add | Add How can I disable this confirmation prompt?
pkamb (9620 rep)
Sep 27, 2022, 03:42 AM
Showing page 1 of 20 total questions