Scroll view problems...not displaying all content

I have an app with two text views with scroll views. They display metadata collected from PSD files. One text view is not displaying all the data, while the other one does display it all.

In the PhotoShop file we are using the first dialog box (Description) in the File Info section to store this data. We use the “Description” and “Keyword” fields. I placed the following text in each as a test:

“Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.”; “Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?”

I use EXIFTOOL to pull the metadata from the file. I assign them to two variables, one called theDescription the other called theKeywords. When I log the value of those variables I get what I pasted above for each. I display those variables in their associated text views:


try
	set content of text view "keywords" of scroll view "keywordsScroll" of window "mainWin" to theKeywords
on error errMsg
	display dialog errMsg & return & return & "Writing to keyword box"
end try
		
try
	set content of text view "description" of scroll view "descriptionScroll" of window "mainWin" to theDescription
on error errMsg
	display dialog errMsg & return & return & "Writing to description box"
end try

In the “keywords” text view I get the following displayed:

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do, Sed ut perspiciatis unde omnis iste natus error sit voluptatem a

In the “description” text view I get the entire text that is in the file.

Both settings for the text views are identical.

In this instance it is only displaying 131 characters, in another test it displayed 278. My first guess was that I was delimiting something and it carried over to this section. But the last delimiter I set is for a colon as that is how EXIFTOOL returns the data (field name: field data) and I am using the colon to separate the two. So I am not delimiting any character in the text above that would stop it all displaying, not that that would explain why one view shows a limited, seemingly random amount of content and the other shows the full amount.

Any help would be appreciated.

I solved this, it was EXIFTOOL…it truncates what is returned in the field “Keyword”, you have to use the field “Subject” but beware that if you are doing an if with field contains “Subject” that there are two fields that contain subject in their titles…:rolleyes: