Skip to main content

Questions tagged [file-extensions]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 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 ...
JJ123's user avatar
  • 1
0 votes
0 answers
62 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 ...
Franck Dernoncourt's user avatar
0 votes
0 answers
29 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?
akr's user avatar
  • 1
4 votes
2 answers
886 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 ...
Qiulang 邱朗's user avatar
2 votes
1 answer
64 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 &...
Tonald Drump's user avatar
1 vote
0 answers
353 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 ...
p13n's user avatar
  • 140
0 votes
1 answer
187 views

Disable macOS Finder confirmation: "Are you sure you want to add the extension to the end of the name?" [duplicate]

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? If you ...
pkamb's user avatar
  • 8,940
2 votes
1 answer
837 views

macOS keeps trying to open .yml files with Xcode after being told to use Atom

I use the Atom text editor, and I want to use that to open .yml files. I do the usual thing: right-click on the file Hover over 'Open with' and then choose the 'Other' option, which opens a dialog ...
Max Williams's user avatar
2 votes
1 answer
306 views

The screen flickered for a second, now files without an extension have a folder icon instead of the usual plain paper icon

For example, touch Test would normally create a Test file without an extension that should have the usual plain paper white icon. Now it's always set to a blue folder icon. The system "knows"...
CollinWoo's user avatar
0 votes
1 answer
640 views

Keyboard shortcut to hide the extension of selected files in Finder

How can I set up a keyboard shortcut to hide the file extension of each selected file in Finder? For example, if ⇧⌘E were such a shortcut, I could conveniently press ⌘A to select all files in the ...
Edward Brey's user avatar
1 vote
0 answers
76 views

Xcode extensions disappears after system restart

I'm using the excellent SwiftFormat extension to format source code in Xcode. However every time I restart the machine the extension is not available in Xcode and when I look in System Preferences - ...
drekka's user avatar
  • 331
1 vote
1 answer
366 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 ...
Agustin Carbajal's user avatar
0 votes
1 answer
112 views

Make filename extensions hidden in specific folder (Desktop) or file (.jar)

I want to make all filename extensions visible (which I did in Finder -> Preferences -> Show All Filename Extensions = true) except the ones in a specific folder (Desktop), or a specific .jar ...
Macintosh3D's user avatar
7 votes
4 answers
33k 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 ...
Magnus Lind Oxlund's user avatar
0 votes
0 answers
46 views

Why is Finder adding .app extension to .service file?

Reproduce: $ nano example.service # (add some text to file and save) $ ls example.service example.service Looks good so far. What's this?
pinhead's user avatar
  • 161
1 vote
1 answer
880 views

How do I prevent macOS from thinking a folder is a file?

I am usually copy/pasting the name of the projects my team works on into a folder's name, so that they match. This allows me to be organized and fast, and to find folders that match project names ...
MicroMachine's user avatar
  • 3,914
3 votes
1 answer
1k views

Disable macOS Finder confirmation: "Are you sure you want to change the extension?" [duplicate]

Every time I change a file type in Finder, I'm forced to confirm that I actually want to change the file extension. Are you sure you want to change the extension from ".old" to ".new&...
pkamb's user avatar
  • 8,940
1 vote
1 answer
3k 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 ...
Zack Burt's user avatar
  • 111
1 vote
1 answer
42 views

assign nothing as default open with application

I usually have bunch of audio files (.mp3) with my music and some other non-audio files (.asd) in the same directory. To play some music quickly I just select all in Finder and hit CMD + o to open ...
htor's user avatar
  • 123
2 votes
0 answers
114 views

I create a file called "foo-bar.service" and it becomes "foo-bar.service.app"

File browser windows show this .app extension, but if I go into the terminal it's just "foo-bar.service" How can I get rid of this annoying, obnoxious nonsense?
patrick's user avatar
  • 425
3 votes
1 answer
2k views

Is there a way to change the default save/export format in Preview?

I always choose PDF when exporting and usually choose JPG when saving. Being able to change the default format from PNG to either of these would save me a few clicks every time I use Preview. Is there ...
Rain's user avatar
  • 416
1 vote
0 answers
101 views

How to associate file extension with executable using bash?

In my bash script setup.sh, how to make macOS associate .foo extension with /usr/local/bin/bar, so that I can click on X.foo in Finder (say) and have macOS perform /usr/local/bin/bar X.foo?
P i's user avatar
  • 1,765
1 vote
0 answers
81 views

Why does Finder append `.app` to a file with `.service`

If have a file called gunicorn.service (a file for Linux) on my Mac. However, Finder shows gunicorn.service.app as filename with a weird "forbidden app" icon. When checking info (cmd+I) with name and ...
doekman's user avatar
  • 837
3 votes
0 answers
34 views

Create a new file type for arranging by type in finder

When I arrange my files by type in Finder, I have several classes like folders, documents, images... and others. However, all my .tex files are in others (Autres) and I want them to be grouped in a ...
abichat's user avatar
  • 131
9 votes
1 answer
5k views

Is there an easy way to add, modify, or remove what files or URLs are associated with Apps?

This is an attempt to write a canonical QA for this issue, as per the Meta post: Where is the list of canonical questions stored for Ask Different? I expect it to be periodically edited with the goal ...
Allan's user avatar
  • 103k
0 votes
1 answer
160 views

Hide all files of the same extension in Finder

I need to hide all files with .pek extension on Finder (macOS Sierra) automatically.
Proamagna TV's user avatar
1 vote
1 answer
648 views

Safari extension builder no "+" sign to add new extension folder

I have an extension that I need to build back to safariextz, but there is no + sign to add new extension. In the tutorials there are + signs but they are old tutorials and there is no new information. ...
Limpuls's user avatar
  • 135
59 votes
5 answers
8k 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 ...
fny's user avatar
  • 1,237
1 vote
1 answer
108 views

Hide a file extension by editing the file name in High Sierra

Before upgrading to High Sierra (i.e. when using Yosemite/El Capitan/Sierra) I constantly hid file extensions by hitting enter and manually removing the file extension from the file name. After ...
asafc's user avatar
  • 81
2 votes
1 answer
7k views

How do I force TextEdit to not add .txt extension (Sierra)

I have TextEdit default to plain text files. I also have "Add .txt extension to plain text files" unchecked in the "Preferences" in the "Open and Save" section. If I perform these steps: Create new ...
onlynone's user avatar
  • 153
2 votes
3 answers
200 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:
MAlshehri's user avatar
  • 123
4 votes
1 answer
948 views

Why does macOS replace .img with .ndif extension?

I'm trying to download a custom android recovery image on my Mac but the extension is changed from .img to .ndif automatically. Is this normal? Will it have any impact on the installation on actual ...
Aniket Thakur's user avatar
4 votes
1 answer
385 views

AppleScript: How to un-hide the file extension of a screenshot?

set filePath to "/Users/Me/Desktop/" & "Screenshot" & ".png" do shell script "screencapture -mx -T1 " & filePath tell application "Finder" set extension hidden of (filePath as POSIX ...
rubik's sphere's user avatar
1 vote
2 answers
184 views

OSX/MacOS Search priority for app when opening custom extension

I'm new to the Mac world but have written my first application. I have it packaged as a .app (let's say my_application.app). My application registers a custom file extension (let's say .xyz). When ...
EL45's user avatar
  • 111
1 vote
1 answer
285 views

How can you unhide the file extension of an application created in Automator?

I've created an application with AppleScript in Automator. When I was saving the application, I made sure that the "Hide extension" box was unchecked, like so: But once the application was saved, ...
rubik's sphere's user avatar
3 votes
1 answer
2k views

How to use AppleScript to un-hide a file's extension?

In Finder, if you right click a file → Get Info, you will see a checkbox in the Name & Extension section that offers users the ability to Hide extension. If you press Command (⌘)-Shift-3 to take ...
rubik's sphere's user avatar
1 vote
2 answers
5k views

How to reset file icons associated with default program on El Capitan [duplicate]

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 ...
beatngu13's user avatar
  • 111
2 votes
1 answer
157 views

Finder: why is a *.wmv movie a "document" and not a movie? Howto correct?

See screen shot of my Finder settings all folders and movies (flv, divx, mkv and mov) are correct categorized, only *.wmv file is a document. Should be movie. Howto correct that? > ls -l@ *.wmv ...
Sybil's user avatar
  • 3,987
0 votes
1 answer
112 views

File types in EFI partition

In El Capitan, I mounted the EFI partition using sudo diskutil mount /dev/disk0s1 and instead of finding apps that I can run, I found .scap, .smc, .epm, and .efi files. What are these? The reason I ...
atirit's user avatar
  • 669
0 votes
3 answers
3k views

File extension not hiding

I have a .dmg file and I want to hide its extension. So I do the usual and ⌘I, then check Hide extension. killall Finder just to be sure. I look and sure enough... the file extension is still there. ...
atirit's user avatar
  • 669
3 votes
1 answer
344 views

Assigning icons system-wide based on filename without extension

I'd like Finder to display a particular icon for files based purely on its filename, not its extension. For instance, for a web project I have a Makefile sitting amidst PHP files, which all display ...
user avatar
2 votes
1 answer
48 views

Finder rejecting/renaming file extension?

I was just attempting to set up a local web project, and came across a peculiar behavior. If I try to change an existing filetype from anything to .scss, Finder ends up rejecting the new filetype and ...
CodeMoose's user avatar
  • 195
3 votes
4 answers
13k 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: ...
Sopalajo de Arrierez's user avatar
2 votes
1 answer
383 views

How to customize open with menu in Yosemite?

I want to customize the right click/"open with" menu for some file extensions like jpg, in order to see just the 4 apps i want to use with this file type. Google suggests me to edit the info.plist ...
akcasoy's user avatar
  • 1,879
2 votes
2 answers
172 views

Open arbitary file from Finder in TextMate

In Finder, I see a file with the ".rel" extension. I'd like top open it in TextMate. I don't see TextMate in the list of choices, and, in fact, can't find it anywhere in the list of applications ...
SRobertJames's user avatar
3 votes
4 answers
8k views

How do I force macOS to always save file extension?

When saving a file without an extension not even OS X is able to open that file anymore. Still it is very easy to accidentally save a file without an extension. Example: When using Firefox and you ...
sir_brickalot's user avatar
6 votes
2 answers
31k views

Which font extension is used on both PC and Mac?

At the office I use a Windows running PC, in which tons of fonts are installed in .TTF, .OTF and .FON formats. I am using an iMac at home and sometimes I have to finalize my designs at home. So, ...
ARTniyet's user avatar
  • 635
3 votes
2 answers
24k views

How to save files on Mac with extension I want?

I need to create a .css file on my Mac. I created it with TextEdit. How do I now save it with a .css extension? It seems that very single File Format it offers will give it a different extension (rtf, ...
oyvey's user avatar
  • 213
2 votes
1 answer
2k views

TextEdit keeps changing file extensions when I save

Is there a way to prevent TextEdit from changing the file extension on a file that I open it with, or at least prompt me? Example: Open somefilename.yyy Save becomes somefilename.rtf I have ...
Roy Hinkley's user avatar
0 votes
2 answers
107 views

File extension shows in BASH but not in Finder

I created a text file with a specific extension: Vendor_0408_Product_3008.idc It displays in finder link this: and BASH like this: -rw-r--r--@ 1 raven staff 1903 Feb 19 10:31 ...
Roy Hinkley's user avatar