Hi folks. I am not having success with the following scripts. As separate scripts, they work just fine. (The first one was grabbed online and is not mine) I can not figure a way to parse the results of the first script and use it for the second part of the script. I have tried telling the finder to set the clipboard to the result in the midst of the first script but the script shows an error that I can not set the clipboard to (all the data is shown).
I have tried every way I can think of to do this. I am not very accomplished at the nuances of Appescripting so if someone can see how to do this, I would appreciate hearing about it. IT seems to me that if the result of a script is XXXX, I should be able to set a variable to XXXX and use it in the next script. Or, set the clipboard to XXXX and use the clipboard results in the next script. But, obviously I am not catching on to how this is done with AS.
Please? And, thank you.
Lb
tell application "iMagine Photo"
set thisFile to choose file with prompt "Choose an image file containing exif data:" without invisibles
set thisImporter to import graphic thisFile
set exifInfo to the exif data of thisImporter
close thisImporter
exifInfo
end tell
tell application "Tex-Edit Plus"
activate
select window 1
select contents of window 1
paste exifInfo
replace window 1 looking for "{{" replacing with ""
replace window 1 looking for "\"}, {exif type:" replacing with "^c"
replace window 1 looking for "exif unicode:\"" replacing with ""
replace window 1 looking for "exif " replacing with ""
replace window 1 looking for "int:" replacing with ""
replace window 1 looking for "type:" replacing with ""
select contents of window 1
set capitalization of selection to word caps
end tell