Hi:
That worked well, I was able to read in the file no problem. I guest
Apple uses a proprietary or undocumented format for the image data in
the Address Book. You can't just throw in a JPEG or TIFF. The image
files are kept in Library/Application Support/AddressBook/Images and
you can view them.
Funny thing is I can take the image of one person and add it to a
second person. But I can't read in a raw image file and add it. Later
I'll try to strip away the JPEG or TIFF headers and load only the data
portion.
On Apr 24, 7:06 pm, Jolly Roger <jollyro...@[EMAIL PROTECTED]
> wrote:
> In article <michelle-11B68A.18284224042...@[EMAIL PROTECTED]
>,
> Michelle Steiner <miche...@[EMAIL PROTECTED]
> wrote:
>
> > In article
> > <af04a9b4-630f-418b-bba9-0e9b99aee...@[EMAIL PROTECTED]
>,
> > Jason8 <jason.le...@[EMAIL PROTECTED]
> wrote:
>
> > > set this_file to "/tmp/foo.tiff"
>
> > Well, for one thing, you set this_file to a string. You need an
alias.
>
> Well, not necessarily an alias - a file specification would do too in
> most cases.
>
> You need to convert your POSIX path to a HFS path:
>
> set this_file to "/tmp/foo.tiff"
> set hfs_path to POSIX file this_file
>
> To convert that to an alias later on, you can just append "alias" to it
> when you refer to it:
>
> set this_image to open alias this_file
>
> --
> Please send all responses to the relevant news group. E-mail sent to
> this address may be devoured by my very hungry SPAM filter. I do not
> read posts from Google Groups. Use a real news reader if you want me to
> see your posts.
>
> JR


|