Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Applescript > Re: Adding imag...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 7 Topic 1601 of 1611
Post > Topic >>

Re: Adding images to Address Book people.

by Jason8 <jason.leach@[EMAIL PROTECTED] > Apr 25, 2008 at 10:12 AM

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




 7 Posts in Topic:
Adding images to Address Book people.
Jason8 <jason.leach@[E  2008-04-24 17:55:38 
Private Message
   2008-04-24 18:28:42 
Private Message
   2008-04-24 21:06:45 
Re: Adding images to Address Book people.
Jason8 <jason.leach@[E  2008-04-25 10:12:09 
Re: Adding images to Address Book people.
Jolly Roger <jollyroge  2008-04-25 18:37:27 
Re: Adding images to Address Book people.
Jason8 <jason.leach@[E  2008-04-27 10:06:44 
Re: Adding images to Address Book people.
Jolly Roger <jollyroge  2008-04-27 14:00:23 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 1:18:14 CDT 2008.