• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Applescript to set image in Addressbook
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applescript to set image in Addressbook


  • Subject: Re: Applescript to set image in Addressbook
  • From: "email@hidden" <email@hidden>
  • Date: Sun, 15 Mar 2009 23:45:49 -0700

The error I am getting is "Address Book got an error: Can't make "/Users/johnny/Desktop/myimage.jpg" into type TIFF picture."

I converted myimage.jpg to myimage.tif using GIMP.  I even tried with myimage.tif but same above error is repeated.

Can some body help me in achieving this.

This is just a guess, but I think you may have a file type issue.

If the file type is TIFF, even if the image is jpeg and it has a .jpg extension, Address Book may read the file type, and then expect a TIFF.

GIMP and other UNIX tools won't change the file type, but you can use FInder or System Events to change it.

tell application "Finder" to set the file type of myImage to "TIFF"


HTH,

ES
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Applescript to set image in Addressbook
      • From: "Sutapalli Satyanarayana" <email@hidden>
References: 
 >Re: Get List of window PC's in the network (From: "Knight, William H. (NIH/OD) [C]" <email@hidden>)
 >Re: Get List of window PC's in the network (From: Roger Howard <email@hidden>)
 >Re: Get List of window PC's in the network (From: Roger Howard <email@hidden>)
 >Applescript to set image in Addressbook (From: "Sutapalli Satyanarayana" <email@hidden>)

  • Prev by Date: Re: Re. third-party dependencies [was Re: Stock Quotes using AppleScript]
  • Next by Date: Re: Applescript to set image in Addressbook
  • Previous by thread: Applescript to set image in Addressbook
  • Next by thread: Re: Applescript to set image in Addressbook
  • Index(es):
    • Date
    • Thread