Re: Applescript to set image in Addressbook
Re: Applescript to set image in Addressbook
- Subject: Re: Applescript to set image in Addressbook
- From: "Sutapalli Satyanarayana" <email@hidden>
- Date: Mon, 16 Mar 2009 01:10:22 -0600
I tried using "sips" from command line and converted jpg to tiff.
Still I am seeing the same error.
The command is not working - tell application "Finder" to set the file type of myImage to "TIFF"
Thanks & Regards,
SVV Satyanarayana,
Novell IDC, Bangalore.
Mobile: 9886555469
Office: +91 80 40022671
>>> "email@hidden" <email@hidden> 3/16/2009 12:15 PM >>>
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"
_______________________________________________
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