site_archiver@lists.apple.com Delivered-To: Darwin-kernel@lists.apple.com Thread-index: Acaf3+cTmLp1lGMwQ7aIFOXOgwsnNgABO3Ug Because, unless I am mistaken, launchd can only watch a single directory. I want to watch any directory, anywhere on the file system, or at least, anywhere in my home directory. Bruce -----Original Message----- From: Dan Shoop [mailto:shoop@iwiring.net] Sent: Tuesday, July 04, 2006 11:06 PM To: Bruce Fancher; Darwin-kernel@lists.apple.com Subject: RE: Advice wanted on how to proceed . . . At 6:47 PM -0400 7/4/06, Bruce Fancher wrote:
Um, no it's not portable. Even I can copy the file to a non-Mac machine I can't do anything with it.
Well that's an application problem. If you had a version of Safari for that platform the Safari specific data in the file would conceivably be rather useful
If I double-click on a .webloc file on a Windows machine, nothing will happen.
As would be expected. It's application specific data. That Safari *also* reads another applications file is no different than Pages reading Word files. But Word doesn't read Pages files.
If I double-click on a .url file on a Mac, it will open. This is because, for once, Microsoft did the right thing and stores web links in plain text files that can be read anywhere, whereas Apple is using a proprietary solution that adds absolutely no value.
No that was just an application decision. Many other browsers can't read either file.
In any event, the question was not how do I read the data out of the resource fork. I've already figured out how to do that using some cockamamie Carbon API.
Ah. I get your issue now. It's not technical ;)
The question is, given the parameters of what I'm trying to do, what's the best way to receive a notification when a file of a particular type is created (or closed)? I don't want to preserve the fork, I want to delete it and replace it with a simple, elegant, cross-platform, human-readable text file.
Why not use launchd? -- -dhan ------------------------------------------------------------------------ Dan Shoop AIM: iWiring Systems & Networks Architect http://www.ustsvs.com/ shoop@iwiring.net http://www.iwiring.net/ 1-714-363-1174 pgp key fingerprint: FAC0 9434 B5A5 24A8 D0AF 12B1 7840 3BE7 3736 DE0B iWiring provides systems and networks support for Mac OS X, unix, and Open Source application technologies at affordable rates. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com