473,770 Members | 6,506 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Re: Picking up resource forks and extended attributes on Mac OS X ?!

Mitrokhin wrote:
Also (dare I ask for this too) If some nice soul could point me in the
right direction for picking up files with extended attributes under OS
X I'd be really gratefull to. Should it be done the same way, ie. via
os. calls or perhaps by way of a popen or ... ?
Mac OS X 10.5 comes with a Python "xattr" package pre-installed, which
the xattr command-line utility is built on top of. Furthermore, the
resource fork can be accessed as an extended attribute
(xattr.XATTR_RE SOURCEFORK_NAME ). This might also be true of Mac OS X
10.4, but I don't recall for sure and I don't have access to it to
check.

-Miles
Aug 30 '08 #1
0 927

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1489
by: Chris Stocker | last post by:
The problem that we see is that we can not create a reparse point on the file system. The operating system returns error 282 which means that the FS doesn't support extended attributes, which it should I believe if it is NTFS. There may be a way to turn off extended attributes on NTFS, but I am not aware of how. The call that we make is FSCTL_SET_REPARSE_POINT from DeviceIoControl.
5
1733
by: John Perks and Sarah Mount | last post by:
When handling resources in Python, where the scope of the resource is known, there seem to be two schools of thought: (1) Explicit: f = open(fname) try: # ... finally: f.close()
0
1675
by: Josef Meile | last post by:
Hi, I'm working with .resx files for a multilanguage application and so far it has worked perfectly. However, now I want to add more attributes to the xml schema and read them at running time. ie: I want to programatically generate forms and validate their input fields according to the data stored on a resource file. Here is an example:
5
2609
by: Martin Bischoff | last post by:
Hi, is it possible to implement custom resource managers for ASP.NET 2.0 so that strings can be read from a database (for example)? Ideally, it should be possible to configure the custom resource manager in web.config, so that it replaces the default resource manager. Using the <%$ ... %> syntax should read the strings via the custom resource manager, e.g. when used like this:
2
1056
by: Raterus | last post by:
Hi, This is easy, I'm using some "extended attributes" to my classes/properties more and more these days, you know, when you have type that stuff before the definition of your class. <XmlRoot(ElementName:="something")> _ Public Class MyClass End Class or sometimes I've had to do this...
4
1140
by: Baldoni | last post by:
It's been years since putting together a page. This line in my HTML: <link type="text/css" rel="stylesheet" href="net4801style.css"> gives this problem (via weblint HTML checker): attribute 'TYPE' for <link> is extended markup (use -x <extension> to do this). Where might be found a resource for simple folk explaining how to best correct this?
1
1414
by: Jason Richmeier | last post by:
In a project I am working on, it sounds like resource files are what I need (to group things like error message strings). If I put a resource file in a project, everything will work fine. However, what I would like to be able to do is to put the resource files in a code library of some sort (I am not sure if I am saying that correctly). From reading some of the documentation (and some painful trial and error), I have figured out how to...
1
1278
by: java.inet | last post by:
HI what is the application of resource variable
0
1672
by: Suppi | last post by:
Hi all, we're doing a lot of xml/java (de)serialization and thus have defined a bigger type hierarchy in xml-schema. It starts with basic complex type as base classes. These are extended via extension/base mechanism to other complex types. Max depth of the type hierarchy is 3. We would like to have a ( possibly Unix ) command line tool which gives us access to all (type) information of the derived types, e.g. list of all parent types,...
0
9591
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9425
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10228
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10057
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10002
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8883
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5312
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5449
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3970
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.