a cesspool of interwebness

Showing posts with label os_x. Show all posts
Showing posts with label os_x. Show all posts

Wishes, wishes

Posted by Unknown On 2010-12-28 7 comments

This has been killing me for months

Posted by Unknown On 2010-08-18 3 comments


10.4: A simple way to copy the path to a file or folder
Authored by: jhaslam on Jan 04, '08 03:24:34PM
Don't know if this works in 10.4 but it seems to work in 10.5:  works like a charm

1. Click on the file or folder you want the path for
2. Click on 'Finder' in the menu bar
3. 'Services'
4. 'TextEdit'
5. 'New Window containing Selection'

A TextEdit window opens with the text (hyperlink) of the path, e.g. /Users/Jim/Music/file.mp3

Quite quick and easy!

---
2.4GHz MacBookPro, 4GB DDR, 10.5.8

Destroy All Locked Files

Posted by Unknown On 2010-05-01 2 comments

So, I use rar, zip and 7z across my PC and Mac, and recently after password protecting an archive, copying it to another machine and unarchiving it, I discovered that I had somehow set the "Locked" attribute. When unpacking files on my Mac I was suddenly having a couple of problems... I couldn't delete the files or manipulate them in a editor (Logic in this case) without getting various 'file is locked' / 'insufficient privileges' messages. Annoying.

We're not talking about 2 or 3 files here, but a directory full of samples and loops that I use for music production. The thought of manually going through each files "info" dialog and unchecking a box made me throw up a little in my mouth - there is ALWAYS a way to script or automate this kind of shit.

After a little digging I was able to uncover this little gem:

sudo chflags -R nouchg ~/

What the hell does that mean you ask? I know it looks like it has the word douche in there, at least, that's all I could see initially, but I'll explain.

sudo will run the chflags command as root (this prompts you for your root password, so I hope you know it).

-R will cause the command to affect every file in the directory and all of its subdirectories. Make sure it's uppercase, as it's case-sensitive.

If uchg is the flag for "Locked" in the info dialog, then nouchg is the syntax for removing the uchg flag.

The tilde (~) indicates that you want to run this command against your home directory. If you have only a subdir inside your home directory you can path it out (I used ~/Music/Resources/SampleBank23/ and it worked a treat).