Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Covert ICNS to image file formats using sips' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Covert ICNS to image file formats using sips
Authored by: c0reysc0tt on Sep 14, '11 11:42:04AM
Cool! Just found this tip after realizing that ICNS to PNG had been using Rosetta and no longer works with Lion. I wasn't familiar with sips, so thanks for posting this tip 5 years ago! :-D Anyway, I turned it into a little AppleScript app if anyone is interested:

on run
	set originalFile to (quoted form of (POSIX path of (choose file with prompt "Choose a file to convert:" default location the path to home folder)))
	set newFile to (POSIX path of (choose file name with prompt "Save the new file as:" default name "Untitled" default location the path to desktop folder))
	set supportedTypes to {"jpeg", "tiff", "png", "gif", "jp2", "pict", "bmp", "qtif", "psd", "sgi", "tga"}
	set chosenType to (choose from list supportedTypes with prompt "Choose new file type:") as text
	set theCommand to "sips -s format " & chosenType & space & originalFile & " --out '" & newFile & "." & chosenType & "'" as string
	
	try
		do shell script theCommand
	on error number errNum
		display dialog errNum
	end try
	
end run


[ Reply to This | # ]