Hot answers tagged file
19
I found the culprit !
Thanks to the suggestion of @Mark Thalkman I made a DTrace script to monitor applications accessing that file.
The application that creates the file is called AppWrapper. The way I discovered it was to look at the folders created in October in /Library/Application Support. There were only two, appWrapper and eSellerate. So I ...
16
You can't avoid them. They're created to store file information that would otherwise go into an extended attribute on HFS+ (Apple native) or Unix/UFS volumes; in earlier Mac OS this would be the resource fork. Finder file operations will create them automatically to store the icon information, plus Time Machine stores some information in them so if you ...
14
The quote marks are preventing ~ from being expanded to your home folder, so you need to either quote just the part with the space in it:
ln -s ~/"Foo Bar/" Foo
Note: exactly how much is quoted doesn't matter, as long as the space is in the quoted portion and the ~ isn't. ~/Foo" "Bar/, ~"/Foo Bar/", ~/Fo"o B"ar/ etc are all equivalent.
You could also use ...
9
You might not be able to track the process that wrote that file, but why not try.
Grab a copy of fseventer or search for that filename in the Time Machine spotlight field to see if you can narrow down when it arrived on your Mac.
7
In a nutshell, how would one access this feature in Finder – not Spotlight (Command+Space) – but the adding of tags themselves?
From Finder, highlight a file and hit Cmd-I (or right click and select Get Info) to bring up the File Info Dialog for the file. In this dialog the Spotlight Comments field is where you add tag data. Just add text to this field ...
5
Unfortunately, you just have to remember to do it each time you make a file or directory. There's no way you can do this via software tools or by formatting to a particular file system. After the fact you can use software to convert spaces to '.' or '-' however.
Obviously what you describe is an excellent idea and good practice when working in a *nix ...
4
Yes, you can remove it, but you'd need to Reboot for it to take effect.
I don't recommend renaming it - the vast majority of applications handle the space just fine.
If you have a handful of problematic programs, then just create a soft link to your desired location:
sudo ln -s /Volumes/Macintosh\ HD/Ruby\ Stuff /Ruby
4
Hallelujah! I figured it out. Okay, so first thing I did was create a new account, as suggested by another answer. The problem did not occur in there, so clearly the problem was limited to my account. I then went into Safe Mode into my account. The problem did not occur as well. So clearly something was loaded in normal mode but not in safe mode that was ...
3
There are many things you can try to fix this:
Trashing com.apple.finder.plist, com.apple.systemuiserver.plist and com.apple.loginwindow.plist (they will be recreated when you launch Finder) in ~/Library/Preferences and Force Quit Finder
Turning off Calculate All Sizes in Finder
Turning off Show View Options in Finder
Another thing you can try, is to ...
3
You can put the whole path in singlequotes:
$ cd '/User Guides And Information/Welcome to Snow Leopard.app/'
Tab-completion even works properly inside a quoted path string.
But as @boehj says, there's no way to make spaces into non-troublemakers on an OS leve.
3
The application is in complete control of how it saves files (overwrite v. append). The answer is to pre-clean your destination before you start whatever work flow you are doing in Capture One. There are any number of ways to accomplish that.
use the rm command from the terminal
write a bash script that does something more complicated
write an applescript
...
3
I think Apple wants the people that apply to know how the Xcode tool chain works and have invested enough time to be able to submit a real app for review rather than being people that can fill out a web form to apply for a ticket.
Now, since you've found us and asked for help with lots of detail, I think you are very close to qualifying for a chance to win ...
2
You might want to try the following:
Search for and highlight the file in Spotlight as usual.
Hold down cmd (command) and press Enter (return).
This should open the file's containing folder, and works in all recent versions of OS X.
2
If you want to hide a file from GUI you can use chflags utility, e.g.
chflags hidden *~
As a permanent solution you can install a launchd agent with command
find $HOME -type f -name '*~' -exec chflags hidden '{}' ';'
I used Lingon for that.
2
If you don't like all the #*# and *~ files floating around in your working directory, put the following elisp code in your .emacs file.
;; Put autosave files (ie #foo#) and backup files (ie foo~) in ~/.emacs-backups/.
(custom-set-variables
'(auto-save-file-name-transforms '((".*" "~/.emacs-backups/autosaves/\\1" t)))
'(backup-directory-alist '((".*" . ...
2
If you use the ZSH shell, this can be done easily in Terminal with zmv (included with OS X by default). Why use fancy scripts if the work is already done?
Type zsh in a terminal window if for some crazy reason you do not have it set as your default shell.
autoload zmv
zmv 'ADVANTE(*)' 'ADVANTI$1'
2
You are correct, I've uploaded a copy of /System/Library/PrivateFrameworks/CoreWLAN.framework here:
http://depositfiles.com/files/4cg5rhv5t
You can test that file (or use your backup) if you want. As always, you might rather reinstall the system than trust a file on the internet - even if I uploaded the correct file and had no ill intentions, the file ...
2
From the font of all knowledge, the maximum file name size in the default HFS+ file system is 255 UTF-16 encoding units, so basically 255 characters. Technically, any unicode character can be used, but this may be practically limited by the application you are using - for example, the / character is used to delineate directories in pathnames, so you may not ...
1
Press ⌘I, select an application, and press the Change All button:
Another option is to use duti. Download the installer and run /usr/local/bin/duti ~/.duti after saving a file like this as ~/.duti:
org.videolan.vlc .mkv all
net.sourceforge.skim-app.skim .pdf all
com.apple.TextEdit public.plain-text all
com.macromates.TextMate.preview ...
1
You can try the commercial app A Better Finder Rename if you want to avoid the Terminal. They also have a free trial.
[Disclaimer: no financial interest in the company which sells ABFR - just a happy customer.]
1
In case you need to do this often (and with different file patterns), this perl script might proof very useful. Store the following script as a text file called rename in a convenient place:
#!/usr/bin/perl -w
# rename - Larry's filename fixer
$op = shift or die "Usage: rename expr [files]\n";
chomp(@ARGV = <STDIN>) unless @ARGV;
for (@ARGV) {
...
1
You could delete the CFBundleDocumentTypes array in the Info.plist, but it is also used to define file types like xcodeproj. It would also invalidate the code signature (so you'd have to enter a password to access keychains), and the changes might get overridden by updates. Some applications like TextEdit crash on launch if the Info.plist is modified.
To ...
1
Data rescue is fairly sophisticated program on the Mac. If there were any traces the filename in the filesystem, that software puts the file name back when it performs a simple undelete. What you are seeing are video fragments of files that were found on the filesystem totally detached from a directory entry.
In short you're not going to be able to get the ...
1
On my copy of Mac OS X 10.5.8, I see the same behaviour as you. file somelink and file -L somelink have the same, --dereference behaviour, regardless of the presence or absence of an environment variable POSIXLY_CORRECT. file -h somelink has the --no-dereference behaviour.
1
If my Googling-fu is stronger than yours, this appears to be linked to the Viscosity VPN client.
According to Viscosity technical support, Viscosity stores registration and trial information in this file, however it can be safely deleted if needed.
1
The permissions of some folders did change to more restrictive on Lion. I don't know about 10.6, but /Library/WebServer/Documents/ is owned by root and has 751 permissions on 10.8 as well.
I don't have any postrgesql folder by default on 10.8, but 10.7 might have had one.
Files are normally meant to put be to ~/Sites/ and accessed from ...
1
You could use mdfind in a shell script to simulate your smart folder's settings (mdfind is how you use Spotlight from the command line). Use kMDItemKind to specify the kind and kMDItemAudioBitRate for the bitrate.
Then you can use that list of files and copy them to your external drive.
Something like this script below. (scp copies files to a server; use ...
1
The merge option will only show up if you are copying (rather than moving) the folder. Make sure you hold option while you drag the new folder to the location of the old folder. Alternatively, using ⌘+c to copy the new folder and ⌘+v to paste over the old folder should give you the option to merge the files.
1
Your best bet is to turn off Time Machine, eject the backup drive and get some help from someone trained to know what Time Machine looks like.
It's entirely possible, the software deleted the old files and over-wrote them with new backups. It's also possible you had a minor glitch in the permissions and all is well.
Assuming you are near a retail store, ...
1
No - the point of FileVault 2 is to make it extremely difficult for a motivated person to decipher what was stored on that volume.
I would pay more attention to destroying that key that was used encrypt the data than the drive.
Of course, you could zero the drive, but why not go one better and pick a new encryption key that was never used, and never will ...
Only top voted, non community-wiki answers of a minimum length are eligible
