An open community 
of Macintosh users,
for Macintosh users.

FineTunedMac Dashboard widget now available! Download Here

Previous Thread
Next Thread
Print Thread
"unable to create type string"
#10961 07/14/10 03:24 AM
Joined: Jun 2010
pashdej Offline OP
OP Offline

Joined: Jun 2010
When I use the Command+shift+4 command to capture a screen selection I am told that Your screen shot can't be saved - "unable to create type string" - this happens only with the MacBook Pro we updated to Snow Leopard - our MacPro is fine. Any thoughts as to where I should look?

Re: "unable to create type string"
pashdej #10967 07/14/10 09:56 AM
Joined: Aug 2009
Likes: 3
Moderator
Offline
Moderator

Joined: Aug 2009
Likes: 3

Hmm...Which version of OS X did you upgrade from? Was it a straight upgrade (i.e. you didn't erase the disk first)?



dkmarsh—member, FineTunedMac Co-op Board of Directors
Re: "unable to create type string"
pashdej #10973 07/14/10 03:37 PM
Joined: Aug 2009
Likes: 8
Online

Joined: Aug 2009
Likes: 8
Along with the above comments, run the latest Combo updater again and see if that makes a difference.


On a Mac since 1984.
Currently: 24" M1 iMac, M2 Pro Mac mini with 27" BenQ monitor, M2 Macbook Air, MacOS 14.x; iPhones, iPods (yes, still) and iPads.
Re: "unable to create type string"
pashdej #10989 07/16/10 12:08 AM
Joined: Aug 2009
Offline

Joined: Aug 2009
I'm gonna go out on a limb here...

Let's suppose that at some time you came across the following (correct) tip:

Quote:
There's a hidden setting to determine what file format Screen Capture uses for the files it creates. The default is PNG, but you can change it by entering the following Terminal command:

defaults write com.apple.screencapture type string

Just replace string with the desired format, one of pdf, png, jpg, or tiff.

Let's further suppose that you typed that in, but forgot to replace the word "string". I imagine you'd get exactly that error message, since "string" is not one of ScreenCapture's supported file formats.

You can see if something like this has happened by entering:

defaults read com.apple.screencapture type

and/or revert to the default file format with:

defaults delete com.apple.screencapture type

Just a thought. I'm gonna come in off that limb now.

Re: "unable to create type string"
ganbustein #10990 07/16/10 12:16 AM
Joined: Aug 2009
Offline

Joined: Aug 2009
If that doesn't work, before rushing out to re-apply combo updaters and and other such big guns, try the basic trouble-shooting steps. Test with a different user. Try temporarily deleting the relevant preference file (~/Library/Preferences/com.apple.screencapture) and restarting. Heck, just try restarting (because it's amazing how often that fixes what ails you).

Re: "unable to create type string"
pashdej #11011 07/17/10 07:34 PM
Joined: Aug 2009
Offline

Joined: Aug 2009
the plist that stores the screen capture type is almost certainly corrupted, since "string" is a tag name in the file and does not belong in a data field.

Plists tend to get imported via A&I and your problem may follow you around like a well-trained dog.


I work for the Department of Redundancy Department
Re: "unable to create type string"
Virtual1 #11017 07/18/10 12:27 PM
Joined: Aug 2009
Likes: 16
Moderator
Online
Moderator

Joined: Aug 2009
Likes: 16
To elaborate on V1's excellent response, the responsible property list (plist) file is in your home directory ~/Library/Preferences/com.apple.screencapture.plist

Simply drag that file to the trash and it will be recreated the next time you use Screen Capture, but with the default file format. The ubiquitous freeware OS X configuration app TinkerTool is among the many utilities that can change the screen capture format to whatever format you desire.


If we knew what it was we were doing, it wouldn't be called research, would it?

— Albert Einstein
Re: "unable to create type string"
pashdej #34864 06/24/15 07:47 PM
Joined: Jun 2015
Offline

Joined: Jun 2015
Go to terminal and type:

defaults write com.apple.screencapture type png


Moderated by  alternaut, dkmarsh, joemikeb 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.4.33 Page Time: 0.028s Queries: 30 (0.019s) Memory: 0.6039 MB (Peak: 0.6834 MB) Data Comp: Zlib Server Time: 2024-04-18 23:01:47 UTC
Valid HTML 5 and Valid CSS