Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 7367 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

Hi all,

I'm new to programming FM and need some assistance with parsing my image paths.

I have a Container field (Colorway Image) with an image placed in it.

I also created a calculated field using GetAsText(Colorway Image). This field returns the value:

size:504,445

image:Images/103456_comp.tif

imagemac:/Radiance/Users/jerryross/Documents/Project Files/TMaG/Footwear Supplement SS05/Images/103456_comp.tif

What I need help with is extracting the image name and location. Everything after "imagemac:"

The purpose of this is it to export the data in Tab Delimited format and then in turn inport the data into an InDesign template.

An input on the syntax needed to parse this would be great.

thanks,

JR

Posted

Define two calc fields:

(source = the field that has the result of the GetAsText function).

I've uploaded the demo file... Check the FM help file for the functions that are being used:

- MiddleValues: because GetAsText gives you a return delimited list. We want to work only with the last item in that list

- Position: gives you the position number of a character in the text string

- Patterncount: gives you the # of occurences of a charachter

- Middle and right: to extract a certain sub-string from the source string

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

Path =

Let(

theSource = RightValues( source; 1 );

Middle(

thesource;

Position( thesource; ":"; 1; 1 ) + 1;

(

Position( thesource; "/"; 1; PatternCount( thesource; "/" ) ) +

1

) -

Position( thesource; "/"; 1; 1 )

)

)

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

Filename =

Let(

theSource = Substitute( RightValues( source; 1 ); "

ExtractPathImage.zip

This topic is 7367 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.