Welcome to MacForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

What attribute for a locked file?

 
   Macintosh computer (Home) -> General Discussion RSS
Next:  creating a disk image on the Mac desktop  
Author Message
Timothy Smith

External


Since: Oct 30, 2006
Posts: 4



(Msg. 1) Posted: Wed Jan 30, 2008 11:24 am
Post subject: What attribute for a locked file?
Archived from groups: comp>sys>mac>programmer>misc (more info?)

Running Leopard on a Mac Pro. Photoshop won't start--claims that a file
is locked. Well it isn't the PS app, and it isn't an image file that I'm
trying to open. So?

I'd like to search down the applications file directory, and see if
there is a file that got locked that PS is trying to open. Some aux file
of some sort.

So how? I could use 'find' in a terminal window, but nothing in the man
page indicates what attribute a locked file has. AFAIK, this is
Mac-specific, and not standard Unix semantics. (But then, my Unix
knowledge is rather out-of-date.) I also have a Python program that
lists files recursively that I could modify, if there were some known
attribute for a locked file.

Any help appreciated. Hope I haven't missed something obvious. Thx.

BTW, this all started after I tried to do a permissions repair, using
the Leopard disk utility, on the volume containing the PS app. I should
have left it alone!

 >> Stay informed about: What attribute for a locked file? 
Back to top
Login to vote
Reinder Verlinde

External


Since: Feb 18, 2004
Posts: 128



(Msg. 2) Posted: Wed Jan 30, 2008 4:39 pm
Post subject: Re: What attribute for a locked file? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article ,
Timothy Smith wrote:

> Running Leopard on a Mac Pro. Photoshop won't start--claims that a file
> is locked. Well it isn't the PS app, and it isn't an image file that I'm
> trying to open. So?
>
> I'd like to search down the applications file directory, and see if
> there is a file that got locked that PS is trying to open. Some aux file
> of some sort.
>
> So how? I could use 'find' in a terminal window, but nothing in the man
> page indicates what attribute a locked file has. AFAIK, this is
> Mac-specific, and not standard Unix semantics.

You would want /usr/bin/GetFileInfo

> (But then, my Unix
> knowledge is rather out-of-date.) I also have a Python program that
> lists files recursively that I could modify, if there were some known
> attribute for a locked file.
>
> Any help appreciated. Hope I haven't missed something obvious. Thx.

It may also help to run opensnoop while you launch Photoshop (actually,
your Python script might want to run it (with -x argument?) and check
the locked bit of each file it reports)

Reinder

 >> Stay informed about: What attribute for a locked file? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
file location on Mac OSX - i would like to locate the files that store my email msgs from the Mail app. i have a form online that, when submited from my site, emails the content to me. i would like to write a C++ program that would automatically parse the info DIRECTLY from my..

log to file from kext - I have been trying to get my kext to log to an arbitrary logfile, and have been experiencing an unending stream of kernel panics with no success. I started using VOP_LOOKUP directly on the rootvnode with no luck, and have since been trying namei()..

Creating a file of a particular type on Mac OSX - Hi, I am trying to create a file of a particular type and since I am not a regular Macintosh developer, I have run into problems. Firstly I don't know the right way to create a file(I am using CARBON). Are there any samples anywhere on the web? Secondl...

Read image file - Hello everybody, I want to use vImage library for image processing. This library does not contain any function to read and write image from and to the disk. How can I do that? Thanks, Geppy

How access attributes of a file??? - How we will get the copyright and kind of a file I used this MDItemCopyAttribute( mdataitem , kMDItemKind) And MDItemCopyAttribute( mdataitem , kMDItemCopyright) But it dont work in mac10.3.9 My application is needed work atleast in mac10.3.9 Please..
   Macintosh computer (Home) -> General Discussion All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]