Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
11 views

How to change a file type's default icon? No success with suggestions from google search results

macOS X Sierra on MacBook Pro Mid 2014 here; I've installed YAC Reader and made it my default application to open .cbr and .cbz files. However, the icons Finder uses for both files is the blank ...
2
votes
1answer
71 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
31 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
17 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. ...
0
votes
0answers
24 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
65 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
25k 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
31 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
29 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 . -...
116
votes
19answers
245k 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?
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
29 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?
4
votes
5answers
6k 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 ...
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
31 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
107 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
4k 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 ...
6
votes
1answer
5k 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 ...
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
29 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
75 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
128 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
75 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
35 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
205 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
180 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
304 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
2k 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
36 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
557 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
657 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
565 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
303 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
477 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
21 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 ...
101
votes
6answers
338k 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
609 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 ...
3
votes
0answers
1k views

Sorry, PowerPoint can't read <file name.>.pptx error when trying to open a powerpoint autorecovery file

I was working on a powerpoint today, and then my document wouldn't let me save, and I ended up overwriting the file with a blank presentation. I don't remember the details of how that happened, but ...
2
votes
1answer
2k views

Garage band app-file recovery?

I dropped my iphone4s in water and when I got a new phone and brought back the GarageBand app none of my songs were there. Is there ANYWAY I can recover these files?
0
votes
1answer
56 views

Saving files to a Mac Computer

I'm trying to save a file to a folder. I keep getting an popup that says I do not have permission to save files to a location
4
votes
1answer
331 views

How to change multiple file type associations on the Mac at once?

I want to change my default media player in macOS. (In my case, I want to change it to my own AppleScript-created instance of VLC that I exported as ‘VLC-New-Window.app’, which is scripted to always ...
4
votes
5answers
2k views

“File” NOT “App”… can't be opened because it is from an unidentified developer

got an mp3 via email from a musician friend of mine today. when i try to open it (in any app... itunes, quicktime, vlc, etc), i get this message as if it's a new Application that i just downloaded ...
2
votes
2answers
470 views

get link to iCloud file from finder without having to go to iCloud website?

Is it possible to get a remote link to a file via finder? I want to be able to share my screenshots really quickly which are now saved to an iCloud folder. Thanks, D.
1
vote
1answer
32 views

What's the `._xxx` file in macOS?

I created a index.php file under my phplessons directory: before I used the phpStorm to open the directory, Apple's Text Editor opened it, now I have phpStorm open, but there is a ._index.php file ...
1
vote
1answer
2k views

Fine-tuning “Open safe files after downloading”

Is it possible to fine-tune the "Open safe files after downloading" setting in Safari? For example, to make Safari open files like ".ical" et. al., but not Zip-files. If macOS has no built-in support ...