Re: Applescript to set image in Addressbook
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