AnsweredAssumed Answered

EXPORTING IMAGES from container with Different FILE TYPES

Question asked by blewvelvet on Nov 2, 2011
Latest reply on Nov 2, 2011 by philmodjunk

Title

EXPORTING IMAGES from container with Different FILE TYPES

Post

Hi.

got a ton of Talent images..PDF, JPG, etc of various file types in a container field.

I need have created some variables and able to export..but need to fully be able to:

 

EXPORT the file - OK

RENAME the file of the Full Name of the person - OKBUT The Filename should ALSO have the actual filetype extension of the file

And save it on the desktop. - OK

-------------------------------------------------------------------------------------------------

I have a script that works..but only if I have one file type (i.e & ".jpg) in the variable. But if it's PDF..preview can't open it.

I need to add to my script that basically get's the LAST 4 DIGITS including the period ".xxx" and add it to the end of the Talent name.

here is what I have.

----------------------------------------------------------

SET VARIABLE     $path

"file:" & Get ( DesktopPath )  &  TALENT::TALENT First  & " "  & TALENT::TALENT Last & ".jpg"

 

EXPORT FIELD CONTENTS -

Target Field - TALENT::TALENT HEADSHOT

Output File -

$path
filemac:/$path
filewin:/$path

--- with auto open file a the end.

------------------------------------------------------------------

It's that damn forced ".jpg" as text that I need the script to look for the actual last 4 digits of the container field file name...and put it there.

I know it's a "Get" function..but not sure how to manipulate it after that.

Outcomes