Questions tagged [file]

A resource for storing information which is available for a computer program. Computer files can be considered as the modern counterpart of paper documents.

Filter by
Sorted by
Tagged with
8
votes
2answers
6k views

How to change the default application for WEBLOC files?

On macOS Sierra, I am encountering a strange behaviour of WEBLOC files. In the Open with: section of the Info window, the drop down list for choosing the default application is greyed out. It is set ...
3
votes
1answer
29 views
+50

Getting error -1426 when trying to transfer files from iPhone via iTunes File Sharing

I'm getting error -1426 when trying to transfer files from iPhone via iTunes File Sharing. I'm on iOS 12.4 and macOS 10.14.6. iPhone is XS Max 256GB and Mac is MacBook Pro (Retina, 15-inch, Mid 2015) ...
4
votes
6answers
7k views

How to force Finder to update file thumbnails?

Recently I updated album covers in most of my mp3s, but their respective thumbnails on Finder did not get updated. Things I tried: Removed (rm ~/Library/Preferences/com.apple.finder.plist) without ...
0
votes
1answer
48 views

Changing date created of bulk files to 9 hours before

I have 3000 files which all have different dates in which they were created. For example a file has a date created timestamp of: 1 August 11:05. How can I use the terminal to change the timestamp to 9 ...
4
votes
4answers
80 views

How to prevent macOS from putting icons on some areas of the desktop?

I have a 49" 5120x1440 ultrawide monitor with some windows always open on the sides and I don't want any kind of item hidden behind them (for example, mounted external drive, downloaded/copied file, ...
5
votes
1answer
1k views

Extended attributes reappear when reconnecting external drive

Some files on my external drive appeared grey out. Hence, I removed all the extended attributes using xattr -rc command which successfully does the trick and all my files appears normal. However, ...
2
votes
1answer
24 views

Locked file that I can't remove

Long story short, I downloaded a file as a replacement for an app that no longer works on Catalina (macOS 10.15). This file is locked, and I cannot chmod it to let me unlock it. Even sudo fails. I ...
4
votes
1answer
154 views

Changing text applied when duplicating file in Finder

When duplicating files in the finder, OS X attaches a space followed by 'copy' to the file name. This can lead to some file alphabetizing problems and the copies may appear out of order (not directly ...
122
votes
20answers
253k views

How to create a text file in a folder

In windows I right click and then there is an option to create a text file. How to do so in mac?
1
vote
2answers
117 views

Free space in iCloud not less even after having deleted all files in iCloud Drive

I have moved all the files located at "Documents" and "Desktop" folder to /home/tmp folder. Also I have deleted all the files in icloud.com, but whenever I check the iCloud Storage, it's still the ...
2
votes
2answers
53 views

How can I see which files I used some days ago? [closed]

I had a telephone conference days three days ago. I took notes while talking and now I can't find them. It could be that I just tipped them into an open document or maybe I created a new one and didn'...
0
votes
1answer
31 views

How To Keep 2 Folders In Sync Real-Time?

I would like to keep Keybase data folders backup up to my local computer with some kind of real-time file sync solution. Every time Keybase is opened, any local files sync to Keybase associated ...
2
votes
1answer
78 views

Rename file names in directory to creation timestamp with second precision

Is there an easy way to do this for files in a particular directory - to have their names be renamed to the file timestamp, with seconds level precision Clarification: For example, suppose a (Mac ...
0
votes
0answers
44 views

“Open with <application>” not working properly

I've noticed that when I try to open a file in any newly added applications, the application opens, but not the file. I've noticed this problem with multiple Wine versions, and also web-based games. ...
0
votes
0answers
23 views

Use automator to download csv-reports form a password protected website

Square Dashboard is a website for Square POS, on that website you can download sales report of the day. You need to sign in, go the a specific category, select one of the locations for the sales ...
2
votes
4answers
5k views

Applescript Move current file to Folder

I want to create a script that takes the current file selection and moves it to an already existing folder. I will then duplicate this code for 9 other folders and assign them all keyboard shortcuts. ...
-1
votes
0answers
27 views

Cannot Delete Directory (Advanced Mac Tuneup) Even with Sudo Commands in Terminal

An adware virus disguised as Adobe Flash update installed an app called Advanced Mac Tuneup. I deleted the app but some associated files still remain. The command sudo rm -rf NAME returns the message ...
0
votes
3answers
106 views

how can I delete a pkg file on a mac?

I have a .pkg file for Malwarebytes on my computer. I can't send it to the trash nor delete it in any other manner. I would appreciate any suggestions.
4
votes
4answers
26k views

Mass remove character from file names and folder names

We have created a lot folders and files that contains the "<" character. Is it possible to mass-remove these characters?
0
votes
0answers
33 views

What process is changing my file permissions?

Every once in a while, I notice that something must have recursively changed all my files' permissions in my home directory to go-rx — so I do: $ find . -type f -exec chmod go+r {} \; $ find . -type ...
1
vote
0answers
35 views

Recover deleted file by inode

I had a crazy file named ''$\r' that I wanted to delete by inode. So I googled how to do it and found an example. Being half asleep and a few beers in, I typed in the inode in the example: find . -...
0
votes
1answer
25 views

Restore file to previously saved version?

Hey guys so I was using Xcode as a text editor to write a C code, and without paying attention I deleted the whole code I had on the file and somehow it got saved that way. When I noticed this (the ...
0
votes
2answers
30 views

How could I check the number of files in a folder without counting them?

Is there a way to check the number of files in a folder on MacBook, other than manually counting them?
5
votes
4answers
2k views

How can I disassociate a single app (e.g., Xcode) from all file types it's mapped to?

Every time I get a machine that I install Xcode on, it associates itself with all kinds of filetypes. E.g., .xml, .rb, even .java! It's such a nuisance to have to re-associate those file extensions ...
0
votes
0answers
35 views

Where could I check to remove temp stored personal files

Do Mac's save any cached versions of files so that if using someone else's laptop or borrowing own laptop to a relative for temp usage need to be aware to remove to avoid personal info being seen? E.g....
1
vote
1answer
129 views

Why is Mac OSX temp. directory in weird path

Comparing to Linux systems OSX default temporary directory seems to be in a weird path. I want to know why that is, at least how is this organized. Here are my observations: My echo "$TMPDIR" ...
1
vote
0answers
42 views

College's files in my trash can?

A few weeks ago, files appeared in my Trash Can. I didn't really look into it and keep thinking it was just temporary files that I deleted myself while working. But after a while, I opened those ...
2
votes
2answers
5k views

Recents not updating with new files in High Sierra

There has been a lot of wingeing over the loss of "All My Files" in favor of "Recents" in High Sierra, and I am beginning to understand why. For one, it seems to be an opaque tool and I have yet to ...
1
vote
2answers
2k views

Jar Launcher.app : where is it supposed to be located at?

On Sierra I installed Java (JDK) and Parallels Desktop. The Windows VM I have in Parallels has decided to set its own (Windows) copy of Java as default for Mac .jar files, which means that whenever I ...
1
vote
0answers
14 views

How does one separate a Numbers spreadsheet with multiple (4) tabs into separate files?

I have been given a spreadsheet with 4 separate tabs/sheets. I would like to separate them into different files. I know that I can cut-and-paste and create new files but is there a simpler/easier way ...
0
votes
0answers
30 views

Finding a file in Finder with a script

someone please explain why this won't work. The script alone without the "if mainReturned = "File" then" works just fine but when I add it to another part of a script, things get weird. It highlights ...
1
vote
1answer
107 views

Make the default location for all save and open actions Google Drive File Stream

Using macOS Mojave or High Sierra, is there a way to change the default file location for all save and open actions to Google Drive File Stream? On Windows I would change it in the registry to g:\...
2
votes
2answers
139 views

Copy full path of an open file

I have a file open in Preview.app. I can easily view the full path for the same by ⌘ + clicking on the file proxy icon (the icon shown besides the filename in Preview's title bar). How do I copy ...
3
votes
2answers
78 views

How do i delete a group of files ending with specific characters?

I'm trying to delete files that end with "_n.png" or "_s.png". How do i do that?
1
vote
1answer
36 views

Why doesn't spotlight return this file?

I am on macOS High Sierra 10.13.3. I created a file with Python but when I search for its name inside Spotlight (or Finder), it's not there. When I os.getcwd() and manually follow its path, it is ...
0
votes
1answer
232 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 ...
2
votes
1answer
196 views

Finder “Show Icon Preview” for certain filetypes?

In OSX (Yosemite) I've figured out how to switch between showing a file as an icon or as a preview in Finder. I can go to Finder > View > Show View Options and then toggle the Show icon preview ...
0
votes
1answer
334 views

Move files using mouse only?

On Windows, you can drag and drop the file using right mouse button, and choose Copy or Move. Moving a file is a very basic computing need. I cannot find any way to do that on OS X without using the ...
1
vote
2answers
3k views

Greyed out/inaccessible files on File Sharing server on Mac OS

My company has a single file sharing Mac Pro computer that every user connects to. Occasionally a user will drop a file in a folder for another user to access, but the the files will be greyed out and ...
1
vote
1answer
37 views

Find files with the same content in one folder (and all its sub-folders)

Say I have a folder named container and there are many files/sub-folders in it. I would like to find all the files with the same content (they can have different names but the content should be the ...
6
votes
1answer
844 views

How to determine which process is creating a file?

Two files have suddenly appeared in my home directory, called "aa" and "err". They are empty. I'm wondering how they got there. I deleted the files and they are created again after some seconds. Is ...
4
votes
3answers
681 views

Batch change creation dates based on file names

I have files that are named like "12. 2017-04-11 063118.jpg", and "123. 2016-09-05 115236.jpg". The number to the left of the "." counts up like an index from 1 to 1400. How can I set the creation ...
0
votes
1answer
1k views

Automator: Select only one file out of many files in a folder. Script needed?

I have a folder with different 100 rtf-text-files in a folder. I would like to have Automator to take the content of one text-file and send out it out via mail once a day to the same mailing-...
3
votes
1answer
3k views

AppleScript editor cannot save .scpt file

I've created a simple AppleScript .scpt file, using TextEdit. If I now open it with AppleScript editor, I can run it. But when I try to modify and save it, I get the following error: It's ...
2
votes
3answers
1k views

How can one save a file as plain text in TextEdit? [duplicate]

I'm not seeing an option to choose plain text encoding (.TXT extension) when saving a file in TextEdit.app in macOS. My documents seem to all be rtf - rich text format. How can I change this?
0
votes
1answer
388 views

Automator SCRIPT NEED: Select part of name file, find file with containing name, then copy this in item in another folder

I have 3 folder: JPG folder: contains my modified JPG files, the name of file is (examples): DSC02996 20181027 201438 (LR).jpg RAW folder: contains my RAW files, the name of file is (examples): ...
1
vote
1answer
541 views

.mht files showing exec icon on Mac

I am working on a Mac (Yosemite, OS X 10.10.5) and I have several mht files which I created on Firefox by selecting File → Save as MHT. I have already associated the files with Firefox — it opens them ...
0
votes
0answers
22 views

Spotlight is disabled but “._file_name” still get created on external drives that I plug in [duplicate]

I want to prevent my MAC from creating ._file_name files on external memory drives that I plug into it. I think I've turned off Spotlight completely. However, such files keep getting created. How to ...
104
votes
6answers
349k views

Is it safe to delete ~/Library/Caches?

Is it safe to delete the file Caches, in the Library of the Mac OS X Hard Drive? It's a pretty big file, 3.56 GB, Caches reminds me of logs i don't need or browser cookies. Is it safe to delete the ...
0
votes
2answers
624 views

prevent mac from renaming downloads' extensions

Sometimes I download something, and OS X (or Chrome, not sure) decides that the file extension must be changed. Is it possible to completely disable this feature? How? I guess this is a Google ...