Renaming filename without highlight extension in Mac [closed] - macos

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
When I press return to rename a filename, automatically, the whole filename is selected (highlighted), including the extension. This is happening in some file types, including .SRT.
In most of the file types, this won't happen. They're most known file types, like JPG and TXT. I tried setting a default app to this file type but that won't fix the problem, I still get the whole filename (including extension) highlighted when press return (to rename the filename).
Any ideas?

Your system doesn't recognise .srt as a valid extension. You need to install an app that will "tell" to the operating system about this extension.
An app that did this for me was VLC
You may also find more information here:
https://superuser.com/questions/371892/osx-assign-extension-to-content-kind

Related

How to write a program that detects address of files that were copied to a USB drive? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I want to write a program that detects address of files that were copied to a USB drive? I want to Every time files were copied to a USB,address of files show in console .How can i do that?
It would depend on the language you chose to use for the job, but regardless you would want to use a library that watches the filesystem for changes and runs a method when a new file is added. If you provide more information about what you want, we can probably give you a more precise answer.

hidden autosave file error: no such file or directory [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I was editing an emacs file abc, and prior to saving, had a crash. There is now a file .#abc, and I would like to find out what is in that file, to perhaps recover what I was working on.
I know the file is there because when I type
ls -a
it lists
.#abc
However, when I type
more ".#abc"
or simply
more .#abc
I get the error
.#abc: No such file or directory
The same error occurs with cp in place of more.
How do I see what is in that file? Why does ls list it and then other commands can't find the file?
(Is .#abc actually an alias file? If so, how would I know that? And how, nevertheless, do I see the content of it, even if this is only what it is an alias to?)
[Note: I do not want to use emacs to try to find out what is in the file or restore it, because the situation is somewhat more complicated than described: the above is all occurring inside a Time Machine backup, which I need to access because of an emacs autosave overwrite problem on the primary file. I don't want to have the same problem occur on the backup of the autosave file!]
This is all on Mac OS10.8.4.
Whereas autosave files use a tilde ~, lock-files use a dot number-sign .#:
http://www.gnu.org/software/emacs/manual/html_node/elisp/File-Locks.html
Creation of lock-files can be disabled with the following setting:
(setq create-lockfiles nil)
https://stackoverflow.com/a/12974060/2112489

Download files to specific target folder [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I am using wget in my windows PC to download files from an ftp server. But it downloads files into a folder where wget.exe is located. But i want it to download files to another folder.How it can be done?( i saw some links which i guess works only in linux).
#WINMAN please look into the following thread for your query, which might help you i hope
How to specify the location with wget?
−P prefix
−−directory−prefix=prefix
Set directory prefix to prefix. The directory prefix is the directory where all other files and subdirectories
will be saved to, i.e. the top of the retrieval tree. The default is . (the current directory).
Taken from the PDF, which comes with the docs from here: http://gnuwin32.sourceforge.net/packages/wget.htm
All other command-line arguments are in the pdf as well, so you should look into it.

Safety of opening .txt files [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
If I'm given a URL that points to a .txt file, is it always safe to open it? Can it possibly contain virus or malicious content?
A genuine txt-file can contain virus code but it cannot be executed, so it's totally safe. However, a file can use double file extension like this, so watch out:
a-virus-file.txt.exe
Windows hides by default .exe because it's a known file type.
It is not safe to rely solely on a file extension. The real file type can easily be masked by someone changing the extension, so the file could easily be a virus or malicious content.
For example:
MyVirus.exe -> SeeminglyHarmlessFile.txt

What are `Zone.Identifier` files, and how do I prevent them from being created? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
This post was edited and submitted for review last year and failed to reopen the post:
Original close reason(s) were not resolved
Improve this question
I often see files named 'blabla.exe:Zone.Identifier' when monitoring I/O with Process Monitor.
The files are seen on network-drives.
What are Zone.Identifier files?
What does the colon mean in the filename?
Is the colon related the file's extended attributes?
How do I prevent these files from being created when I copy code files from Windows Explorer to a WSL directory?
The text after the colon is an identifier for an "Alternate Data Stream". ADS is used to store meta-information about the file. For example, the Zone identifier stores whether the file was downloaded from the internet.
Some specific info about URL Security Zones, Zone.Identifier Stream Name
See also Technet, Heysoft and this article about alternative data streams.
Finally, here's Streams, the Sysinternals tool for ADS.

Resources