unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: David Reitter <david.reitter@gmail.com>
Subject: Re: Carbon port: setting the creator code (patch)
Date: Sat, 9 Jul 2005 14:06:09 +0100	[thread overview]
Message-ID: <6EE47A44-098A-432C-9127-204E7A9BF1D3@gmail.com> (raw)
In-Reply-To: <FCD7AFC7-484E-4C3D-979A-86A281540BB6@mac.com>

On 9 Jul 2005, at 04:04, Steven Tamm wrote:

> Sorry for the delay in reply, but it seems to me that using SetFile  
> would be easier, and more flexible.
>
> (defun mac-set-creator-code-for-file ()
>   (call-process shell-file-name nil nil t shell-command-switch  
> (concat "/Developer/Tools/SetFile -c EMAx " buffer-file-name))
> )
> (add-hook 'after-save-hook 'mac-set-creator-code-for-file)


SetFile is only available if the Developer Tools are installed. That  
is not necessarily the case, and the other code doesn't introduce  
that dependency.
The correct way to set file metadata is to go through Carbon, in this  
case. That's what the API is for...

-Dave

  parent reply	other threads:[~2005-07-09 13:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-24  9:05 Carbon port: setting the creator code (patch) David Reitter
2005-07-09  3:04 ` Steven Tamm
2005-07-09  8:11   ` Sébastien Kirche
2005-07-09 13:06   ` David Reitter [this message]
2005-07-09 16:08     ` Steven Tamm
2005-07-10  0:56       ` YAMAMOTO Mitsuharu
2005-07-10 11:55         ` David Reitter
2005-07-10 11:16       ` David Reitter
2005-07-10 13:30         ` Benjamin Riefenstahl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6EE47A44-098A-432C-9127-204E7A9BF1D3@gmail.com \
    --to=david.reitter@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).