View Single Post
The path string returned by GetOFProjPath() is easily chopped up.
You can extract the sub-path that you want with code along the lines of:

Code:
-- make a copy of the existing text item delimiter (to be restored later)
set strDelim to my text item delimiters

-- Change the text item delimiter to allow segmentation of the full path
set my text item delimiters to "/"

-- Get a list of the path segments
set lstSegments to text items of GetOFProjPath()

-- Extract some sub-section of the full path, e.g.
set strLastTwo to (items -2 thru -1 of lstSegments) as string

-- restore the original text item delimiter
set my text item delimiters to strDelim